mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-22 04:07:59 +01:00
Update systempony
This commit is contained in:
parent
1d60acd25a
commit
9e6ed23130
1 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ function list_ponies()
|
||||||
{
|
{
|
||||||
ponydir=$(get_data_file "rendered/ansi/")
|
ponydir=$(get_data_file "rendered/ansi/")
|
||||||
echo random
|
echo random
|
||||||
find "$ponydir" -name '*.colored.txt' -exec basename {} .colored.txt \; | sort
|
find "$ponydir" -name '*.ansi' -exec basename {} .ansi \; | sort
|
||||||
}
|
}
|
||||||
|
|
||||||
function select_info()
|
function select_info()
|
||||||
|
@ -316,10 +316,10 @@ then
|
||||||
ponyfile=/dev/null
|
ponyfile=/dev/null
|
||||||
else
|
else
|
||||||
ponydir=$(get_data_file "rendered/ansi/")
|
ponydir=$(get_data_file "rendered/ansi/")
|
||||||
ponyfile="$ponydir/$PONY.colored.txt"
|
ponyfile="$ponydir/$PONY.ansi"
|
||||||
if [ -n "$ponydir" -a '(' \! -f "$ponyfile" -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 '*.ansi' | shuf | head -n 1)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue