git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/issues/display
blob: a66553d61f56d272d0c11951c8eb1656df0fae64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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