We don't want this

This commit is contained in:
Sven-Hendrik Haase 2012-02-26 18:31:09 +01:00
parent 2ee2c38c7a
commit f7a7a59d11

View file

@ -1,26 +0,0 @@
#!/usr/bin/env bash
export PERL_UNICODE=S
ponydir=/usr/share/ponies
function ponyf() {
if [[ -f ${ponydir}/${1}.cow ]] ; then
cowthink -f "${ponydir}/${1}.cow" $@
else
ponyr $@
fi
}
function ponyr() {
cowthink -f $(ls ${ponydir}/*.cow | sort -R | head -n1) $@
}
while getopts f:hv OPT
do
case ${OPT} in
v) echo "v0.01" ; exit;;
h) echo "helpherpderp" ; exit;;
f) ponyf $* ; exit;;
\?) echo "DERP"; exit;;
*) ponyr $* ; exit;;
esac
done
ponyr $*