Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the macOS up to date query, get actionable output (#360)
the new mql provides you a better output which update is missing: ``` cnspec> parse.plist('/Library/Preferences/com.apple.SoftwareUpdate.plist').params['RecommendedUpdates'] == empty [failed] parse.plist.params.RecommendedUpdates == <ref> expected: == _ actual: [ 0: { Display Name: "macOS Sonoma 14.3.1" Display Version: "14.3.1" Identifier: "MSU_UPDATE_23D60_patch_14.3.1_minor" MobileSoftwareUpdate: true Product Key: "MSU_UPDATE_23D60_patch_14.3.1_minor" } ] ``` Instead of this output: ``` cnspec> command("softwareupdate -l").stderr.contains("No new software available.") [failed] command.stderr.contains expected: == true actual: false ``` Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
- Loading branch information