try=0
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 ..."
+ echo " Waiting for another pkg installation process to finish ..."
sleep 10
if [[ ${try} -gt 60 ]] ; then
echo "ERROR: Max number of re-tries reached, exiting..."