aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-18 18:57:04 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-18 18:57:04 +0200
commitc2a3c19c9238e1e153e51a4182080e07b809a9da (patch)
treedbac292148b94aff2aaeeacf91aabe8939e5de77
parentde1f27a73accf24642399597749781d88a6a4ad6 (diff)
downloadponysay-c2a3c19c9238e1e153e51a4182080e07b809a9da.tar.gz
ponysay-c2a3c19c9238e1e153e51a4182080e07b809a9da.tar.bz2
ponysay-c2a3c19c9238e1e153e51a4182080e07b809a9da.zip
m
-rwxr-xr-xponysay.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/ponysay.sh b/ponysay.sh
index e390f09..74dca7b 100755
--- a/ponysay.sh
+++ b/ponysay.sh
@@ -1,16 +1,6 @@
#!/usr/bin/env bash
-# Get bash script directory's parent
-INSTALLDIR="$(dirname $( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))"
-
-# Subscripts
-truncatercmd="$INSTALLDIR/lib/ponysay/truncater"
-
-pony="*" # Selected pony
-wrap="" # Message wrap column
-ponies=() # Selected ponies
-
scrw=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2` # Screen width
scrh=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 1` # Screen height
@@ -20,26 +10,6 @@ kmscmd=""
[ ! "$kmscmd" = "" ] && TERM="-linux-"
-# Cowsay script
-if [ ${0} == *ponythink ]; then
- if [ "$PONYSAY_COWTHINK" = "" ]; then
- cmd=cowthink
- customcmd=0
- else
- cmd="$PONYSAY_COWTHINK"
- customcmd=1
- fi
-else
- if [ "$PONYSAY_COWSAY" = "" ]; then
- cmd=cowsay
- customcmd=0
- else
- cmd="$PONYSAY_COWSAY"
- customcmd=1
- fi
-fi
-
-
# Function for printing the ponies and the message
say() {
# Set PONYSAY_SHELL_LINES to default if not specified