mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-18 02:24:21 +01:00
We don't want this
This commit is contained in:
parent
2ee2c38c7a
commit
f7a7a59d11
1 changed files with 0 additions and 26 deletions
26
ponythink
26
ponythink
|
@ -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 $*
|
|
Loading…
Reference in a new issue