update
This commit is contained in:
parent
1fcfcda2e1
commit
66d51205b2
14
update.sh
Normal file → Executable file
14
update.sh
Normal file → Executable 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user