From e65d7d99fd3a09c6b515004f1bb13cd363cf9af6 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 8 Sep 2014 11:49:48 +0200 Subject: [PATCH 1/4] Posixify gen-gdbus-interfaces.sh --- scripts/gen-gdbus-interfaces.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gen-gdbus-interfaces.sh b/scripts/gen-gdbus-interfaces.sh index 7b13905..0856369 100755 --- a/scripts/gen-gdbus-interfaces.sh +++ b/scripts/gen-gdbus-interfaces.sh @@ -18,10 +18,10 @@ REPO=$(dirname "$(readlink -f $0)")/../ cd $REPO -if [[ $# -ne 1 ]];then +if [ $# -ne 1 ];then echo "syntax: ./gen-dbus-interfaces " exit 1 -elif [[ $1 != "hostnamed" && $1 != "localed" && $1 != "timedated" && $1 != "logind" ]];then +elif [ $1 != "hostnamed" -a $1 != "localed" -a $1 != "timedated" -a $1 != "logind" ];then echo " must be 'hostnamed', 'localed', 'timedated', or 'logind'" exit 1 fi -- 2.1.0