Simplify confirmation

This commit is contained in:
David Heinemeier Hansson 2024-05-26 19:13:22 -07:00
parent c4dab0d63a
commit 2812f75c0b

View File

@ -9,7 +9,7 @@ sudo apt install -y curl git
for script in ~/.omakub/install/*.sh; do source $script; done
# Reboot to pickup changes
read -p "Ready to reboot the system for all settings to take effect? (YES/no): " response
if [[ -z "$response" || "$response" =~ ^[Yy][Ee][Ss]$ || "$response" =~ ^[Yy]$ ]]; then
read -p "Ready to reboot the system for all settings to take effect? [Y/n]: " response
if [[ -z "$response" || "$response" =~ ^[Yy]$ ]]; then
sudo reboot
fi