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