Fix SC2004 $/${} unnecessary on arithmetic vars 23/82323/1
authorThanh Ha <zxiiro@gmail.com>
Thu, 30 May 2019 02:06:17 +0000 (22:06 -0400)
committerThanh Ha <zxiiro@gmail.com>
Thu, 30 May 2019 02:27:39 +0000 (22:27 -0400)
Change-Id: Id068d46b56d6c5c1555b2d95f04f39f465ff573c
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
jjb/integration/common-functions.sh

index 8cdbc0b7525bfbb12268e56d381343feeadad4fe..d4173f2c6368969c4c78dcf1e0637938d828c603 100644 (file)
@@ -919,7 +919,7 @@ function copy_and_run_post_startup_script() {
         echo "Execute the post startup script on controller ${!CONTROLLERIP}"
         scp ${WORKSPACE}/post-startup-script.sh ${!CONTROLLERIP}:/tmp
         ssh ${!CONTROLLERIP} "bash /tmp/post-startup-script.sh $(( seed_index++ ))"
-        if [ $(( $i % ${NUM_ODL_SYSTEM} )) == 0 ]; then
+        if [ $(( i % NUM_ODL_SYSTEM )) == 0 ]; then
             seed_index=1
         fi
     done