Fix cluster scripts. Use the right variable arithmetic expansion.
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-controller.sh
index a2a29fef2ca50d22326c32b1bdeda04d9f9ebcfe..7cbacc8151f756ae086cb9330ec8f3c67b83323c 100644 (file)
@@ -43,7 +43,7 @@ EOF
 CONTROLLERIPS=(${CONTROLLER0} ${CONTROLLER1} ${CONTROLLER2})
 for i in "${!CONTROLLERIPS[@]}"
 do
-    echo "Installing distribution in member-${i+1} with IP address ${CONTROLLERIPS[$i]}"
+    echo "Installing distribution in member-$((i+1)) with IP address ${CONTROLLERIPS[$i]}"
     scp ${WORKSPACE}/deploy-controller-script.sh ${CONTROLLERIPS[$i]}:/tmp
     ssh ${CONTROLLERIPS[$i]} 'bash /tmp/deploy-controller-script.sh'
 done