aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElis Axelsson <elis.axelsson@gmail.com>2012-07-19 20:58:58 +0200
committerElis Axelsson <elis.axelsson@gmail.com>2012-07-19 20:58:58 +0200
commit9820d208a1264666e29d94072a64e1e50f0aeaa4 (patch)
tree0416578d2d8e45db1e6e93b1b53dd79e7803bf83
parentaf2cc12de9109c7fdb5234f3a06fd159f408591f (diff)
downloadponysay-9820d208a1264666e29d94072a64e1e50f0aeaa4.tar.gz
ponysay-9820d208a1264666e29d94072a64e1e50f0aeaa4.tar.bz2
ponysay-9820d208a1264666e29d94072a64e1e50f0aeaa4.zip
Fix path to truncater and list
-rwxr-xr-xponysay5
1 files changed, 3 insertions, 2 deletions
diff --git a/ponysay b/ponysay
index 1034456..d7fb068 100755
--- a/ponysay
+++ b/ponysay
@@ -3,6 +3,7 @@
version=1.0
SYSTEMPONIES="/usr/share/ponysay/ponies"
HOMEPONIES="${HOME}/.local/share/ponysay/ponies"
+SCRIPTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Get bash script directory
pony="*"
wrap=""
@@ -19,8 +20,8 @@ version() {
}
scrw=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2`
-listcmd="/usr/lib/ponysay/list.pl"
-truncatercmd="/usr/lib/ponysay/truncater"
+listcmd="${SCRIPTDIR}/../lib/ponysay/list.pl"
+truncatercmd="${SCRIPTDIR}/../lib/ponysay/truncater"
haspq=1
if [[ -f './pq4ps-list' ]]; then