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 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user