Fix hardcoded path

This commit is contained in:
Mattia Basaglia 2014-12-25 19:59:45 +01:00
parent 85bad2ecb5
commit 2612faf2bd

View file

@ -228,7 +228,7 @@ ponydir=$(get_data_file "rendered/ansi/")
ponyfile="$ponydir/$PONY.colored.txt"
if [ -n "$ponydir" -a '(' -z "$PONY" -o "$PONY" = random ')' ]
then
ponyfile="$(find rendered/ansi/ -name '*.colored.txt' | shuf | head -n 1)"
ponyfile="$(find "$ponydir" -name '*.colored.txt' | shuf | head -n 1)"
fi