-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Mac auto update check to be fail resistent and use appropriate…
… flags (#166)
- Loading branch information
1 parent
d1d941b
commit 0287cc4
Showing
9 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
#!/usr/bin/env kmd | ||
exec defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist | ||
tryExec defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist | ||
defaultTo | ||
save output | ||
extract CriticalUpdateInstall\s+=\s+([\d]+); | ||
defaultTo 1 | ||
defaultTo 0 | ||
save updates.criticalUpdateInstall | ||
|
||
load output | ||
extract AutomaticCheckEnabled\s+=\s+([\d]+); | ||
defaultTo 1 | ||
defaultTo 0 | ||
save updates.automaticCheckEnabled | ||
|
||
load output | ||
extract ConfigDataInstall\s+=\s+([\d]+); | ||
defaultTo 1 | ||
defaultTo 0 | ||
save updates.configDataInstall | ||
|
||
load output | ||
extract AutomaticDownload\s+=\s+([\d]+); | ||
defaultTo 1 | ||
defaultTo 0 | ||
save updates.automaticDownload | ||
|
||
load output | ||
extract AutomaticallyInstallMacOSUpdates\s+=\s+([\d]+); | ||
defaultTo 0 | ||
save updates.automaticallyInstallMacOSUpdates | ||
|
||
remove output | ||
save updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters