Created
April 5, 2018 12:09
-
-
Save alwalker/c52bf42b0ebf07b9417228db85146e6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IS_LOCKED=$(sudo lsof /var/lib/dpkg/lock | wc -l) | |
echo "Is Locked? $IS_LOCKED" | |
until [[ $IS_LOCKED -eq 0 ]]; do | |
echo "Is Locked? $IS_LOCKED" | |
echo "sleeping for 5" | |
sleep 5 | |
IS_LOCKED=$(sudo lsof /var/lib/dpkg/lock | wc -l) | |
done | |
echo "we made it out!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment