git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2021-09-17 12:34:33 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2021-09-17 12:34:33 +0200
commit01abe525cbe2b0a58856988d2dc3bde25f684268 (patch)
tree481c57689131fae981529d81a0ebbad6a4b7419b
parent5b8462dd58bedc1fa70080bbc6342dbc4262a4f9 (diff)
downloadetcissue-01abe525cbe2b0a58856988d2dc3bde25f684268.tar.bz2
+display
-rwxr-xr-xissues/display16
1 files changed, 16 insertions, 0 deletions
diff --git a/issues/display b/issues/display
new file mode 100755
index 0000000..a66553d
--- /dev/null
+++ b/issues/display
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+if [ -n "$1" ];then
+ FARR="$1"
+ if [ ! -e "$FARR" ];then FARR="$FARR.issue";fi
+else
+ IFS=$'\n'
+ FARR=( $(ls *.issue) )
+ unset IFS
+fi
+for i in "${FARR[@]}";do
+ IFS=$'\n'
+ FLARR=( $(cat "$i") )
+ unset IFS
+ if command -v figlet >/dev/null;then printf "%b\\n" "$i"|figlet; else printf "%b\\n" "$i";fi
+ printf "%b\\n" "${FLARR[@]}"
+done