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
|
if gum confirm "DO YOU WANT TO START THE UPDATE NOW?" ;then
|
||||||
|
echo
|
||||||
echo "Update started."
|
echo "Update started."
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
|
echo
|
||||||
echo "Update canceled."
|
echo "Update canceled."
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
@ -41,20 +43,20 @@ echo ""
|
|||||||
|
|
||||||
if [[ $(_isInstalledYay "timeshift") == "0" ]] ;then
|
if [[ $(_isInstalledYay "timeshift") == "0" ]] ;then
|
||||||
if gum confirm "DO YOU WANT TO CREATE A SNAPSHOT?" ;then
|
if gum confirm "DO YOU WANT TO CREATE A SNAPSHOT?" ;then
|
||||||
echo ""
|
echo
|
||||||
c=$(gum input --placeholder "Enter a comment for the snapshot...")
|
c=$(gum input --placeholder "Enter a comment for the snapshot...")
|
||||||
sudo timeshift --create --comments "$c"
|
sudo timeshift --create --comments "$c"
|
||||||
sudo timeshift --list
|
sudo timeshift --list
|
||||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
echo "DONE. Snapshot $c created!"
|
echo "DONE. Snapshot $c created!"
|
||||||
echo ""
|
echo
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
echo "Snapshot canceled."
|
echo "Snapshot canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
echo "Snapshot canceled."
|
echo "Snapshot canceled."
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yay
|
yay
|
||||||
|
Loading…
Reference in New Issue
Block a user