aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Batu Altunbaş <erkinbatu@gmail.com>2012-03-11 23:18:18 +0100
committerErkin Batu Altunbaş <erkinbatu@gmail.com>2012-03-11 23:18:18 +0100
commit0533da4bb36151b6b8cf6de157b802df6c62f58d (patch)
tree08fc659e281ec9382811e9d7abc332c6c8b68823
parenteb25fecf0793d79947de7f4b58e87efe7d8b1831 (diff)
downloadponysay-0533da4bb36151b6b8cf6de157b802df6c62f58d.tar.gz
ponysay-0533da4bb36151b6b8cf6de157b802df6c62f58d.tar.bz2
ponysay-0533da4bb36151b6b8cf6de157b802df6c62f58d.zip
derp. >.<
-rwxr-xr-xponysay7
1 files changed, 4 insertions, 3 deletions
diff --git a/ponysay b/ponysay
index 739ab30..12a8447 100755
--- a/ponysay
+++ b/ponysay
@@ -6,15 +6,16 @@ HOMEPONIES="${HOME}/.ponies"
pony="*"
wrap=
-if [[ -f `which cowsay` ]];
-then continue;
+if [[ -f `which cowsay` ]];
+then
+ true
else
echo "You don't seem to have the cowsay program."
echo "Please install it in order to use this wrapper."
echo -n "(Or symlink it to 'cowsay' in anywhere in \$path "
echo "if it actually exists under a different filename."
+ exit;
fi
-
cmd=cowsay
[[ ${0} == *ponythink ]] && cmd=cowthink