Hyprland-dotfiles/.install/updatesystem.sh

20 lines
503 B
Bash
Raw Normal View History

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