Added NO_RESTART to skip macOS updates
This commit is contained in:
parent
a1995303a9
commit
3ba3cd9233
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
{{ includeTemplate "universal/logg-before" }}
|
{{ includeTemplate "universal/logg-before" }}
|
||||||
|
|
||||||
### System upgrade on macOS
|
### 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
|
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 8 minutes if system upgrade fails)'
|
logg info 'Ensuring system software is upgraded (timing out after 8 minutes if system upgrade fails)'
|
||||||
|
|
Loading…
Reference in a new issue