Hyprland-dotfiles/.install/updatesystem.sh

20 lines
503 B
Bash
Raw Normal View History

2024-03-19 11:58:35 -04:00
# ------------------------------------------------------
# Update System
# ------------------------------------------------------
echo -e "${GREEN}"
figlet "System Update"
echo -e "${NONE}"
2024-03-29 08:08:22 -04:00
echo "It's important that your system is up-to-date before you proceed."
2024-05-27 07:39:44 -04:00
echo
2024-03-29 08:08:22 -04:00
if gum confirm "Do you want to update your system with yay now?" ;then
echo ":: Update started"
2024-03-19 11:58:35 -04:00
yay
2024-03-29 08:08:22 -04:00
elif [ $? -eq 130 ]; then
2024-05-27 07:39:44 -04:00
echo ":: Installation canceled."
2024-03-29 08:08:22 -04:00
exit 130
2024-05-23 08:00:01 -04:00
else
2024-03-29 08:08:22 -04:00
echo ":: System update skipped"
2024-03-19 11:58:35 -04:00
fi
2024-03-29 08:08:22 -04:00
echo