update/update.sh
cercatrova21 66d51205b2 update
2023-03-01 16:16:44 +01:00

17 lines
206 B
Bash
Executable File

#!/bin/sh
sudo apt update
sudo apt list --upgradable
printf 'Would you like to upgrade (y/n)? '
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo apt upgrade -y
else
echo Ok bye
fi