Skip to content

Instantly share code, notes, and snippets.

@fvdm fvdm/ubuntu_update.sh
Last active Jan 27, 2016

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.