aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorSven-Hendrik Haase <sh@lutzhaase.com>2012-02-26 16:55:57 +0100
committerSven-Hendrik Haase <sh@lutzhaase.com>2012-02-26 16:55:57 +0100
commit9dc80bf1b45a28207a37d50ec24b1f2c909ccf1f (patch)
tree0b3bbec0cfd2a9e236b37af10bb27460ba6b587d /ponysay
parent2eca5eaa963df57963a7d27ae80286f1a5581db5 (diff)
downloadponysay-9dc80bf1b45a28207a37d50ec24b1f2c909ccf1f.tar.gz
ponysay-9dc80bf1b45a28207a37d50ec24b1f2c909ccf1f.tar.bz2
ponysay-9dc80bf1b45a28207a37d50ec24b1f2c909ccf1f.zip
Now things work dandy
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay6
1 files changed, 4 insertions, 2 deletions
diff --git a/ponysay b/ponysay
index 1a51c51..401c522 100755
--- a/ponysay
+++ b/ponysay
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
export PERL_UNICODE=S
+
ponydir=$PWD/ponies
function ponyf() {
@@ -18,7 +19,8 @@ do
case ${OPT} in
v) echo "v0.01" ; exit;;
h) echo "helpherpderp" ; exit;;
- f) ponyf ${2}; exit;;
- \?) show_error "DERP"; exit;;
+ f) ponyf $* ; exit;;
+ *) ponyr $* ; exit;;
esac
done
+ponyr $*