From 7d541c97983a60aa0fc4ed8e0730b77e649040fa Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 25 Dec 2023 00:37:23 +0000 Subject: [PATCH] Added exit to reboot section --- home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl index fddeecc0..9689fd03 100644 --- a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl @@ -170,6 +170,7 @@ upgradeDarwin() { if [ -n "$OSASCRIPT_EXIT_CODE" ]; then logg info 'Reboot required and failed to gracefully shutdown within 1 minute, so forcing reboot' && sudo sh -c 'shutdown -r now' fi + exit 0 else logg info 'No reboot required for softwareupdate' fi