updateSystem() { noconfirm= if [[ $1 == "-y" ]]; then noconfirm="-y" fi sudo apt update; sudo apt upgrade $noconfirm; sudo apt autoremove $noconfirm; }