Hyprland-dotfiles/.install/updatesystem.sh

18 lines
460 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."
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
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