Hyprland-dotfiles/.install/updatesystem.sh

18 lines
464 B
Bash
Raw Permalink 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
else
echo ":: System update skipped"
2024-03-19 11:58:35 -04:00
fi
2024-03-29 08:08:22 -04:00
echo