aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay8
1 files changed, 3 insertions, 5 deletions
diff --git a/ponysay b/ponysay
index 1bb76c1..1034456 100755
--- a/ponysay
+++ b/ponysay
@@ -19,7 +19,8 @@ version() {
}
scrw=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2`
-listcmd="ponysaylist.pl"
+listcmd="/usr/lib/ponysay/list.pl"
+truncatercmd="/usr/lib/ponysay/truncater"
haspq=1
if [[ -f './pq4ps-list' ]]; then
@@ -190,10 +191,7 @@ say() {
cat
else
WIDTH=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2`
- ponysaytruncater $WIDTH 2>/dev/null ||
- ${HOME}/.local/bin/ponysaytruncater $WIDTH 2>/dev/null ||
- ./ponysaytruncater $WIDTH 2>/dev/null ||
- cat
+ $truncatercmd $WIDTH 2>/dev/null || cat
fi
}