Minor adjustments for readability

This commit is contained in:
4G3NT 2023-06-17 02:42:31 -07:00 committed by GitHub
parent 5aabeba148
commit 31dfabdf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ err()
while getopts ":htd:" opt; do
case "$opt" in
h)
printf "%s\n" "$help"
echo "$help"
exit
;;
t)
@ -62,12 +62,12 @@ msg="$1"
if [ -n "$toiletFlag" ]; then
for i in "$fontDir"/*.flf "$fontDir"/*.tlf; do
echo "Font: $(basename "$i" | sed 's#\.tlf##g;s#\.flf##g')"
echo "Font: $(basename "$i" | sed 's,\.tlf,,g;s,\.flf,,g')"
figlet -f "$i" "$msg"
done
else
for i in "$fontDir"/*.flf; do
echo "Font: $(basename "$i" | sed 's#\.flf##g')"
echo "Font: $(basename "$i" | sed 's,\.flf,,g')"
figlet -f "$i" "$msg"
done
fi