chore(tools): prompt user to reboot when running interactively after updates

This commit is contained in:
2026-05-12 21:46:57 -04:00
parent cdcd89b5b2
commit db6b349bc4
+15
View File
@@ -130,4 +130,19 @@ if [ -f /var/run/reboot-required ]; then
echo -e "${GRAY}Packages requiring reboot:${NC}"
sed 's/^/ • /' /var/run/reboot-required.pkgs
fi
if [ -t 0 ]; then
echo ""
echo -e -n "${BOLD}Reboot now? [y/N]: ${NC}"
read -r reboot_reply
case "$reboot_reply" in
[yY]|[yY][eE][sS])
info "Rebooting..."
systemctl reboot
;;
*)
info "Reboot skipped. Remember to reboot later."
;;
esac
fi
fi