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)'