mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01:00
Setting $pony's default later is unnecessary
This commit is contained in:
parent
2ddfe9d19b
commit
7039eab517
1 changed files with 1 additions and 6 deletions
7
ponysay
7
ponysay
|
@ -3,7 +3,7 @@
|
||||||
version=0.4
|
version=0.4
|
||||||
SYSTEMPONIES=/usr/share/ponies
|
SYSTEMPONIES=/usr/share/ponies
|
||||||
HOMEPONIES="${HOME}/.ponies"
|
HOMEPONIES="${HOME}/.ponies"
|
||||||
pony=
|
pony="*"
|
||||||
wrap=
|
wrap=
|
||||||
|
|
||||||
cmd=cowsay
|
cmd=cowsay
|
||||||
|
@ -39,12 +39,7 @@ done
|
||||||
|
|
||||||
# Pony not a file? Search for it
|
# Pony not a file? Search for it
|
||||||
if [[ ! -f $pony ]]; then
|
if [[ ! -f $pony ]]; then
|
||||||
|
|
||||||
# Pony not set? Choose all
|
|
||||||
[[ -z $pony ]] && pony="*"
|
|
||||||
|
|
||||||
ponies=()
|
ponies=()
|
||||||
|
|
||||||
[[ -d $SYSTEMPONIES ]] && ponies+=( "$SYSTEMPONIES"/$pony.pony )
|
[[ -d $SYSTEMPONIES ]] && ponies+=( "$SYSTEMPONIES"/$pony.pony )
|
||||||
[[ -d $HOMEPONIES ]] && ponies+=( "$HOMEPONIES"/$pony.pony )
|
[[ -d $HOMEPONIES ]] && ponies+=( "$HOMEPONIES"/$pony.pony )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue