Added NO_RESTART to skip macOS updates

This commit is contained in:
Brian Zalewski 2023-06-23 04:59:20 +00:00
parent a1995303a9
commit 3ba3cd9233

View file

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