#!/bin/bash # if not root, run as root if (( $EUID != 0 )); then sudo $HOME/scripts/updatesystem.sh exit fi apt update apt list --upgradeable read -p "Press any key to continue... " -n1 -s apt upgrade -y #apt-get -y dist-upgrade apt clean apt autoremove -y