Fixed timeout
This commit is contained in:
parent
2c42cfc701
commit
2117e398e2
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ if [ -d /Applications ] && [ -d /Library ] && [ -z "$NO_RESTART" ]; then
|
||||||
if command -v gtimeout > /dev/null; then
|
if command -v gtimeout > /dev/null; then
|
||||||
# Allow 8 minutes for system updates
|
# Allow 8 minutes for system updates
|
||||||
logg info 'Ensuring system software is upgraded (timing out after 50 minutes if system upgrade fails)'
|
logg info 'Ensuring system software is upgraded (timing out after 50 minutes if system upgrade fails)'
|
||||||
sudo gtimeout 3000 softwareupdate -i -a -R || logg warn 'The system update command timed out after 50 minutes'
|
gtimeout 3000 sudo softwareupdate -i -a -R || logg warn 'The system update command timed out after 50 minutes'
|
||||||
else
|
else
|
||||||
# If gtimeout is unavailable, then attempt system upgrade without a timeout (which usually works on fresh systems)
|
# If gtimeout is unavailable, then attempt system upgrade without a timeout (which usually works on fresh systems)
|
||||||
logg info 'Applying OS upgrades (if available)'
|
logg info 'Applying OS upgrades (if available)'
|
||||||
|
|
Loading…
Reference in a new issue