From bfdceaefd701085762dcdca73d4d006fd455d3dc Mon Sep 17 00:00:00 2001 From: cerca Date: Wed, 22 May 2024 12:22:33 +0000 Subject: [PATCH] Update update.sh --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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