From 7039eab51790628a2c378668ac04bf69a028740e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sun, 26 Feb 2012 20:21:18 +0100 Subject: Setting $pony's default later is unnecessary --- ponysay | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ponysay') 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 ) -- cgit