Suppress figlet errors

This commit is contained in:
4G3NT 2023-06-17 03:00:15 -07:00 committed by GitHub
parent 2898d36160
commit c0a7f43ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,11 +63,11 @@ 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')"
figlet -f "$i" "$msg"
figlet -f "$i" "$msg" 2> /dev/null
done
else
for i in "$fontDir"/*.flf; do
echo "Font: $(basename "$i" | sed 's,\.flf,,g')"
figlet -f "$i" "$msg"
figlet -f "$i" "$msg" 2> /dev/null
done
fi