From dc2418e532b17a8d4507c3c2b4b335da3372df5f Mon Sep 17 00:00:00 2001 From: Michael Parks Date: Thu, 15 Aug 2013 11:06:48 -0600 Subject: [PATCH 1/2] Start script needs bash instead of sh for root arguments --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index 41a8090d2..83b07a378 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash #Move to the folder where ep-lite is installed cd `dirname $0` From f3987007b0fff559197f428864574e9e63d65399 Mon Sep 17 00:00:00 2001 From: Michael Parks Date: Tue, 17 Sep 2013 15:27:52 -0600 Subject: [PATCH 2/2] Back to sh, fix comparison for POSIX/dash (++ CentOS, Ubuntu compatibility) --- bin/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/run.sh b/bin/run.sh index 83b07a378..9389de6f7 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh #Move to the folder where ep-lite is installed cd `dirname $0` @@ -11,7 +11,7 @@ fi ignoreRoot=0 for ARG in $* do - if [ $ARG == '--root' ]; then + if [ "$ARG" = "--root" ]; then ignoreRoot=1 fi done