From 3ba3cd9233af82eb933cf2a94650dbc2b722a5a1 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Fri, 23 Jun 2023 04:59:20 +0000 Subject: [PATCH] Added NO_RESTART to skip macOS updates --- .../universal/run_before_01-system-homebrew.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl index 814c5dcc..9e63c3d4 100644 --- a/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl @@ -15,7 +15,7 @@ {{ includeTemplate "universal/logg-before" }} ### System upgrade on macOS -if [ -d /Applications ] && [ -d /Library ]; then +if [ -d /Applications ] && [ -d /Library ] && [ -z "$NO_RESTART" ]; then if command -v gtimeout > /dev/null; then # Allow 8 minutes for system updates logg info 'Ensuring system software is upgraded (timing out after 8 minutes if system upgrade fails)'