aboutsummaryrefslogtreecommitdiff
path: root/pq4ps
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-16 18:27:20 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-16 18:27:20 +0200
commit23d84d1b553d4e820b5a3ce0d388247ee670e20c (patch)
treea04238fa4dc702635c97af491618489819ba3eab /pq4ps
parente3c9cdfc95673abd60990b54fad036c37b6ef0a4 (diff)
downloadponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.tar.gz
ponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.tar.bz2
ponysay-23d84d1b553d4e820b5a3ce0d388247ee670e20c.zip
portability: [[ is not recongised by dash
Diffstat (limited to 'pq4ps')
-rwxr-xr-xpq4ps2
1 files changed, 1 insertions, 1 deletions
diff --git a/pq4ps b/pq4ps
index ace4a30..513bcec 100755
--- a/pq4ps
+++ b/pq4ps
@@ -2,7 +2,7 @@
INSTALLDIR="$(dirname "$(dirname "$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")")" # Get main bash script directory's parent
-if [[ $# == 1 ]] && [[ "$1" == '-l' || "$1" == '--list' ]]; then
+if [ $# == 1 ] && [ "$1" == '-l' || "$1" == '--list' ]; then
perl "$0.pl" "$INSTALLDIR" | cut -d @ -f 1 | uniq
else
_ponies="$(perl "$0.pl" "$INSTALLDIR")"