From fbf121bc3cff4ea40cd3d27654e458f50df76c2e Mon Sep 17 00:00:00 2001 From: Matt Gucci Date: Sun, 4 Nov 2018 15:20:50 +0900 Subject: [PATCH] Fix loop syntax in runPantheonPrivateNetwork.sh (#237) `while (( "$#" ))` does not work in some shells. --- quickstart/runPantheonPrivateNetwork.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstart/runPantheonPrivateNetwork.sh b/quickstart/runPantheonPrivateNetwork.sh index d360786ce3..571f431640 100755 --- a/quickstart/runPantheonPrivateNetwork.sh +++ b/quickstart/runPantheonPrivateNetwork.sh @@ -14,7 +14,7 @@ me=`basename "$0"` PARAMS="" -while (( "$#" )); do +while [ $# -gt 0 ]; do case "$1" in -h|--help) echo "Usage:" @@ -76,4 +76,4 @@ if [ ! ${SKIP_BUILD} ];then fi docker-compose ${COMPOSE_CONFIG_FILE_OPTION} up -d --scale node=4 -${QUICKSTART_FOLDER}/listQuickstartServices.sh \ No newline at end of file +${QUICKSTART_FOLDER}/listQuickstartServices.sh