Last active
August 26, 2021 11:25
-
-
Save kovshenin/afd753d3f1535b9425c8c9bc8f4779a4 to your computer and use it in GitHub Desktop.
Safe apt-get
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,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1 ; do | |
sleep 0.5 | |
done | |
/usr/bin/apt-get "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment