From 06cc1ec244f1ae6f5a8e23065399626d40605c12 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Sun, 21 Jun 2020 02:12:31 +0000 Subject: [PATCH] loop.sh --- tests/script/loop.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/script/loop.sh b/tests/script/loop.sh index d41fe8d4aa..adafe2ed60 100755 --- a/tests/script/loop.sh +++ b/tests/script/loop.sh @@ -6,7 +6,7 @@ # ################################################## -set +e +set -e #set -x CMD_NAME= @@ -30,9 +30,10 @@ done echo LOOP_TIMES ${LOOP_TIMES} echo CMD_NAME ${CMD_NAME} -for (( i=0; i<$LOOP_TIMES; i++ )) +for ((i=0; i<$LOOP_TIMES; i++ )) do echo loop $i echo cmd $CMD_NAME $CMD_NAME + sleep 2 done -- GitLab