This commit is contained in:
cercatrova21 2023-03-01 16:16:44 +01:00
parent 1fcfcda2e1
commit 66d51205b2

12
update.sh Normal file → Executable file
View File

@ -2,11 +2,15 @@
sudo apt update sudo apt update
sudo apt list --upgradable sudo apt list --upgradable
echo "Would you like to upgrade? (Y/N): " printf 'Would you like to upgrade (y/n)? '
read upgrade read answer
if [$upgrade == "Y"]
then if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo apt upgrade -y sudo apt upgrade -y
else
echo Ok bye
fi fi