aboutsummaryrefslogtreecommitdiff
path: root/ponysay.sh
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 19:27:59 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 19:27:59 +0200
commitee3c5532b8e0330b7bbed6d013489cbb4748a0ca (patch)
treebc0677d1bcfc1b3876974569d67c69d132e248f1 /ponysay.sh
parente8864eb219201d6b3218ebf59897c942dff42f30 (diff)
downloadponysay-ee3c5532b8e0330b7bbed6d013489cbb4748a0ca.tar.gz
ponysay-ee3c5532b8e0330b7bbed6d013489cbb4748a0ca.tar.bz2
ponysay-ee3c5532b8e0330b7bbed6d013489cbb4748a0ca.zip
m
Diffstat (limited to 'ponysay.sh')
-rwxr-xr-xponysay.sh34
1 files changed, 1 insertions, 33 deletions
diff --git a/ponysay.sh b/ponysay.sh
index 70137bd..ebd482d 100755
--- a/ponysay.sh
+++ b/ponysay.sh
@@ -24,27 +24,7 @@ say() {
function htrunctail {
tail --lines=$(( $scrh - $PONYSAY_SHELL_LINES ))
}
-
- # Simplification of customisation of cowsay
- if [ $customcmd = 0 ]; then
- function cowcmd {
- pcmd='#!/usr/bin/perl\nuse utf8;'
- ccmd=$(for c in $(echo $PATH":" | sed -e 's/:/\/'"$cmd"' /g'); do if [ -f $c ]; then echo $c; break; fi done)
-
- if [ ${0} == *ponythink ]; then
- cat <(echo -e $pcmd) $ccmd > "/tmp/ponythink"
- perl '/tmp/ponythink' "$@"
- rm '/tmp/ponythink'
- else
- perl <(cat <(echo -e $pcmd) $ccmd) "$@"
- fi
- }
- else
- function cowcmd {
- $cmd "$@"
- }
- fi
-
+
# KMS ponies support
if [ "$kmscmd" = "" ]; then
function runcmd {
@@ -67,15 +47,3 @@ say() {
runcmd "${wrap:+-W$wrap}" | wtrunc
fi
}
-
-# Check for cowsay
-hash $cmd &>/dev/null; if [ $? -ne 0 ]; then
- cat >&2 <<EOF
-You don't seem to have the $cmd program.
-Please install it in order to use this wrapper.
-
-Alternatively, symlink it to '$cmd' in anywhere in \$PATH
-if it actually exists under a different filename.
-EOF
- exit 1
-fi