From a2804a54a762686f0072fe7c94462d2fae8f2cda Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Fri, 1 Mar 2024 21:09:33 +0100 Subject: [PATCH] Update --- scripts/installupdates.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/installupdates.sh b/scripts/installupdates.sh index 178d7dc..e404002 100755 --- a/scripts/installupdates.sh +++ b/scripts/installupdates.sh @@ -30,10 +30,12 @@ _isInstalledYay() { # ------------------------------------------------------ if gum confirm "DO YOU WANT TO START THE UPDATE NOW?" ;then + echo echo "Update started." elif [ $? -eq 130 ]; then exit 130 else + echo echo "Update canceled." exit; fi @@ -41,20 +43,20 @@ echo "" if [[ $(_isInstalledYay "timeshift") == "0" ]] ;then if gum confirm "DO YOU WANT TO CREATE A SNAPSHOT?" ;then - echo "" + echo c=$(gum input --placeholder "Enter a comment for the snapshot...") sudo timeshift --create --comments "$c" sudo timeshift --list sudo grub-mkconfig -o /boot/grub/grub.cfg echo "DONE. Snapshot $c created!" - echo "" + echo elif [ $? -eq 130 ]; then echo "Snapshot canceled." exit 130 else echo "Snapshot canceled." fi - echo "" + echo fi yay