INFRA: Switch to tox for JJB verify and merge jobs
[infra/cicd.git] / jjb / geode / apache-geode-slave / slave_setup.sh
index 91615e08a21a345069d0d903c5c4c5a4df473bc2..306636a4afaaceced4750303bf1c667bdc520fd4 100755 (executable)
@@ -27,11 +27,11 @@ while sudo lsof ${DPKG_LOCK}  > /dev/null 2>&1 ; do
   echo "DPKG file locked: ${DPKG_LOCK}."
   echo "   Waiting for another pkg instalaltion process to finish ..."
   sleep 10
-  if [[ ${try} -gt 30 ]] ; then
+  if [[ ${try} -gt 60 ]] ; then
     echo "ERROR: Max number of re-tries reached, exiting..."
     exit 1
   fi
-  let "try++"
+  try=$((try + 1))
 done
 
 sudo apt-get update