diff --git a/update.sh b/update.sh index a7fccb5..b8be348 100755 --- a/update.sh +++ b/update.sh @@ -7,6 +7,14 @@ read answer if [ "$answer" != "${answer#[Yy]}" ] ;then 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 echo Ok bye fi