Last active
January 24, 2019 05:41
-
-
Save nafg/a8be82385742233410aaa072bbc5ef76 to your computer and use it in GitHub Desktop.
Waiting apt-get based on answer by Radu Rădeanu at https://askubuntu.com/a/375031/124119
This file contains hidden or 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
#!/bin/bash | |
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | |
echo "Waiting for other software managers to finish..." | |
sleep 10 | |
done | |
/usr/bin/apt-get "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment