From 23d84d1b553d4e820b5a3ce0d388247ee670e20c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Aug 2012 18:27:20 +0200 Subject: portability: [[ is not recongised by dash --- pq4ps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pq4ps') 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")" -- cgit