From 5670aba806223dda75c016d306e06814daed5068 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 26 May 2024 15:51:46 -0700 Subject: [PATCH] Reboot when done --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index c4030d1..053e266 100644 --- a/install.sh +++ b/install.sh @@ -21,3 +21,9 @@ sudo snap install code --classic # Installers echo -e "\e[32mRUNNING CUSTOM INSTALLERSe[0m" for script in ~/.omakub/install/*.sh; do source $script; done + +# Reboot to pick up all settings +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 + sudo reboot +fi