Skip to content

Instantly share code, notes, and snippets.

@LetUsFlow
Created August 7, 2023 18:13
Show Gist options
  • Save LetUsFlow/500e52043eb7d78b0205699d8c3c6bbf to your computer and use it in GitHub Desktop.
Save LetUsFlow/500e52043eb7d78b0205699d8c3c6bbf 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'
sudo nala upgrade
echo -e $TEXT_YELLOW
echo 'NALA upgrade finished...'
echo -e $TEXT_RESET
sudo nala autoremove
echo -e $TEXT_YELLOW
echo 'NALA 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