Closed vinulogy closed 2 years ago
Oh fun. The script is pulling the name and version of the update from the output of softwareupdate --list
, and I'm guessing the name of the update is "macOS Big Sur 11.6", so it gets doubled up with the version column. Not sure if there's a good fix there, but if you could send over the full output of softwareupdate --list
on a Mac with that update pending, I can reexamine the current text format and try to come up with a cleaner name/version capture.
Sure thing. Here you go!
Finding available software
Software Update found the following new or updated software:
* Label: Safari15.0BigSurAuto-15.0
Title: Safari, Version: 15.0, Size: 119059K, Recommended: YES,
* Label: macOS Big Sur 11.6-20G165
Title: macOS Big Sur 11.6, Version: 11.6, Size: 2575888K, Recommended: YES, Action: restart,
I don't know if it's possible, but a suggestion is maybe it can run an IF
statement where if it detects 10.15.x, it'll run the current block of code. If it's 11.x.x, it'll omit the version column?
Could do that, or maybe omit version if the Title column contains "macOS"?
It's not perfect, but I've written logic to omit the Version column if the update report includes the string "macOS". Note that this means, in your example above, the Safari version string would also be left out, but I think this ultimately results in a cleaner summary for the purpose of inclusion in the alerts. Will put up a PR shortly if anyone wants to test it out.
Fixed in #65, thanks for calling this out!
When enforcing the update in Big Sur, the version is labelled twice.