Update update.sh

This commit is contained in:
cerca 2024-05-22 12:22:33 +00:00
parent ea3f88e1f5
commit bfdceaefd7

View File

@ -7,6 +7,14 @@ read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then if [ "$answer" != "${answer#[Yy]}" ] ;then
sudo apt upgrade -y sudo apt upgrade -y
printf 'Would you like to autoremove (y/n)? '
read answer1
if [ "$answer1" != "${answer1#[Yy]}" ] ;then
sudo apt autoremove -y
else
echo Ok bye
fi
else else
echo Ok bye echo Ok bye
fi fi