Last active
January 27, 2016 09:26
-
-
Save fvdm/54cd851e1e979091bdcd 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
#!/bin/sh | |
if [ $TERM = "screen" ]; then | |
sudo sh -c ' \ | |
apt-get update \ | |
&& apt-get $1 upgrade \ | |
&& apt-get $1 dist-upgrade \ | |
&& apt-get $1 autoremove \ | |
&& apt-get clean' | |
else | |
screen -S update ~/bin/update $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment