mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-21 19:57:59 +01:00
Random systempony
This commit is contained in:
parent
879fc140e8
commit
2adbe67b18
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
PONY=fluttershy
|
||||
PONY=random
|
||||
INFO=( User Hostname Distro Kernel Uptime Shell Packages RAM Disk )
|
||||
|
||||
function ponyget_Shell()
|
||||
|
@ -226,6 +226,10 @@ done
|
|||
|
||||
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)"
|
||||
fi
|
||||
|
||||
# WARNING most of the variable names below this point are pretty bad and should be refactored
|
||||
|
||||
|
|
Loading…
Reference in a new issue