Update
This commit is contained in:
parent
2741a595d0
commit
a2804a54a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user