From a1995303a97aa5f5debe227c7fc69f5ac4c8d59a Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Fri, 23 Jun 2023 04:58:26 +0000 Subject: [PATCH] Auto-restart with macOS updates. --- .../universal/run_before_01-system-homebrew.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8307e9bc..814c5dcc 100644 --- a/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl @@ -19,11 +19,11 @@ if [ -d /Applications ] && [ -d /Library ]; 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)' - sudo gtimeout 480 softwareupdate -i -a || logg warn 'The system update command timed out after 8 minutes' + sudo gtimeout 480 softwareupdate -i -a -R || logg warn 'The system update command timed out after 8 minutes' else # If gtimeout is unavailable, then attempt system upgrade without a timeout (which usually works on fresh systems) logg info 'Applying OS upgrades (if available)' - sudo softwareupdate -i -a || logg error 'Failed to perform a system update via `sudo softwareupdate -i -a`' + sudo softwareupdate -i -a -R || logg error 'Failed to perform a system update via `sudo softwareupdate -i -a`' fi logg info 'If system updates were downloaded / installed, a reboot might be required.' fi