Add a way to disable the pony

This commit is contained in:
Mattia Basaglia 2015-08-04 17:33:57 +02:00
parent 3b12c83e16
commit cabffe4242

View file

@ -278,12 +278,17 @@ do
fi fi
done done
if [ "$PONY" = nopony ]
then
ponyfile=/dev/null
else
ponydir=$(get_data_file "rendered/ansi/") ponydir=$(get_data_file "rendered/ansi/")
ponyfile="$ponydir/$PONY.colored.txt" ponyfile="$ponydir/$PONY.colored.txt"
if [ -n "$ponydir" -a '(' -z "$PONY" -o "$PONY" = random ')' ] if [ -n "$ponydir" -a '(' \! -f "$ponyfile" -o "$PONY" = random ')' ]
then then
ponyfile="$(find "$ponydir" -name '*.colored.txt' | shuf | head -n 1)" ponyfile="$(find "$ponydir" -name '*.colored.txt' | shuf | head -n 1)"
fi fi
fi
declare -A info_firstx # Number of characters before the system info output declare -A info_firstx # Number of characters before the system info output