aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2012-02-26 20:21:18 +0100
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2012-02-26 20:21:18 +0100
commit7039eab51790628a2c378668ac04bf69a028740e (patch)
tree71e605f8c52d6d4940d78267fa3e1bc1c26aeda3 /ponysay
parent2ddfe9d19b22cabf34f5670da0dbcd3f6cec52e9 (diff)
downloadponysay-7039eab51790628a2c378668ac04bf69a028740e.tar.gz
ponysay-7039eab51790628a2c378668ac04bf69a028740e.tar.bz2
ponysay-7039eab51790628a2c378668ac04bf69a028740e.zip
Setting $pony's default later is unnecessary
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay7
1 files changed, 1 insertions, 6 deletions
diff --git a/ponysay b/ponysay
index 5fe2e7c..ac04ba6 100755
--- a/ponysay
+++ b/ponysay
@@ -3,7 +3,7 @@
version=0.4
SYSTEMPONIES=/usr/share/ponies
HOMEPONIES="${HOME}/.ponies"
-pony=
+pony="*"
wrap=
cmd=cowsay
@@ -39,12 +39,7 @@ done
# Pony not a file? Search for it
if [[ ! -f $pony ]]; then
-
- # Pony not set? Choose all
- [[ -z $pony ]] && pony="*"
-
ponies=()
-
[[ -d $SYSTEMPONIES ]] && ponies+=( "$SYSTEMPONIES"/$pony.pony )
[[ -d $HOMEPONIES ]] && ponies+=( "$HOMEPONIES"/$pony.pony )