Skip to content

Commit

Permalink
Merge pull request #107 from joncrain/patch-1
Browse files Browse the repository at this point in the history
fix: sal-postflight
  • Loading branch information
grahamgilbert authored Aug 25, 2023
2 parents 03a8a17 + c5595a2 commit 7b2e336
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions payload/usr/local/munki/postflight.d/sal-postflight
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ def check_for_errors(report):
"\t(-1009, 'The Internet connection appears to be offline.')"],
]

if munkicommon.pref('InstallAppleSoftwareUpdates'):
if warnings in target_warnings and errors == target_errors:
if munkicommon.pref("InstallAppleSoftwareUpdates"):
if warnings in target_warnings and any(
error.startswith(target_error)
for target_error in target_errors
for error in errors
):
return True
else:
if errors == target_errors:
if any(
error.startswith(target_error)
for target_error in target_errors
for error in errors
):
return True

return False
Expand Down

0 comments on commit 7b2e336

Please sign in to comment.