From 857c88cfe7d664c31546f9af1059e83bc5af07da Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 25 Dec 2023 01:02:12 +0000 Subject: [PATCH] Latest --- home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl index 2f769639..98a2af58 100644 --- a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl @@ -164,7 +164,8 @@ upgradeDarwin() { fi ### Reboot - logg info 'Reboot required' && exit 140 + logg info 'Reboot required' + {{ exit 140 }} # gtimeout 60 osascript -e 'tell application "Finder" to shut down' || OSASCRIPT_EXIT_CODE=$? # 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'