Update ponysay

This commit is contained in:
Erkin Batu Altunbaş 2012-02-26 17:02:57 +01:00
parent 9dc80bf1b4
commit 7b4ce006cc

View file

@ -7,7 +7,7 @@ function ponyf() {
if [[ -f ${ponydir}/${1}.cow ]] ; then if [[ -f ${ponydir}/${1}.cow ]] ; then
cowsay -f "${ponydir}/${1}.cow" $@ cowsay -f "${ponydir}/${1}.cow" $@
else else
ponyr ponyr $@
fi fi
} }
function ponyr() { function ponyr() {
@ -20,6 +20,7 @@ do
v) echo "v0.01" ; exit;; v) echo "v0.01" ; exit;;
h) echo "helpherpderp" ; exit;; h) echo "helpherpderp" ; exit;;
f) ponyf $* ; exit;; f) ponyf $* ; exit;;
\?) echo "DERP"; exit;;
*) ponyr $* ; exit;; *) ponyr $* ; exit;;
esac esac
done done