mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-21 19:57:59 +01:00
Add a way to disable the pony
This commit is contained in:
parent
3b12c83e16
commit
cabffe4242
1 changed files with 9 additions and 4 deletions
13
systempony
13
systempony
|
@ -278,11 +278,16 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ponydir=$(get_data_file "rendered/ansi/")
|
if [ "$PONY" = nopony ]
|
||||||
ponyfile="$ponydir/$PONY.colored.txt"
|
|
||||||
if [ -n "$ponydir" -a '(' -z "$PONY" -o "$PONY" = random ')' ]
|
|
||||||
then
|
then
|
||||||
ponyfile="$(find "$ponydir" -name '*.colored.txt' | shuf | head -n 1)"
|
ponyfile=/dev/null
|
||||||
|
else
|
||||||
|
ponydir=$(get_data_file "rendered/ansi/")
|
||||||
|
ponyfile="$ponydir/$PONY.colored.txt"
|
||||||
|
if [ -n "$ponydir" -a '(' \! -f "$ponyfile" -o "$PONY" = random ')' ]
|
||||||
|
then
|
||||||
|
ponyfile="$(find "$ponydir" -name '*.colored.txt' | shuf | head -n 1)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue