Created
February 27, 2015 13:43
-
-
Save emilisto/f8738981fcc1c51e94d2 to your computer and use it in GitHub Desktop.
Wrapper for `apt-get install` that runs apt-get update if any download returns 404
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 | |
COMMAND="DEBIAN_FRONTEND=noninteractive apt-get install -qy $@" | |
eval $COMMAND || (apt-get update && eval $COMMAND) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did it... work?