Skip to content

Instantly share code, notes, and snippets.

@rhovelz
Created January 10, 2020 09:26
Show Gist options
  • Save rhovelz/c1f5b6527d1f9dea35244bf7fd008318 to your computer and use it in GitHub Desktop.
Save rhovelz/c1f5b6527d1f9dea35244bf7fd008318 to your computer and use it in GitHub Desktop.
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[0;33m'
TEXT_RED_B='\e[1;31m'
TEXT_BLUE='\e[0;34m'
TEXT_PURPLE='\e[0;35m'
TEXT_CYAN='\e[0;36m'
TEXT_GREEN='\e[0;32m'
sudo apt-get update -y
echo -e $TEXT_YELLOW
echo 'APT update finished...'
echo -e $TEXT_RESET
sudo apt-get dist-upgrade -y
echo -e $TEXT_CYAN
echo 'APT distributive upgrade finished...'
echo -e $TEXT_RESET
sudo apt-get upgrade -y
echo -e $TEXT_PURPLE
echo 'APT upgrade finished...'
echo -e $TEXT_RESET
sudo apt-get autoremove
echo -e $TEXT_GREEN
echo 'APT auto remove finished...'
echo -e $TEXT_RESET
if [ -f /var/run/reboot-required ]; then
echo -e $TEXT_RED_B
echo 'Reboot required!'
echo -e $TEXT_RESET
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment