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

14
update.sh Normal file → Executable file
View File

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