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