Came across this issue with the Safari 14 update. macOS 10.15.6 uses a different software update readout than 10.14.6 (not sure if it's new but this is when I noticed it). When readingsoftwareupdate -l into ListOfSoftwareUpdates the following is the output:
10.14.6:
Software Update Tool
Finding available software
Software Update found the following new or updated software:
Came across this issue with the Safari 14 update. macOS 10.15.6 uses a different software update readout than 10.14.6 (not sure if it's new but this is when I noticed it). When reading
softwareupdate -l
intoListOfSoftwareUpdates
the following is the output:10.14.6:
10.15.6:
The issue is, the 2 lines that set
UpdatesNoRestart
andRestartRequired
use grep:This will work on 10.14 but not 10.15 because of casing. Adding
-i
to the grep commands for finding "restart" and "recommended" resolves this: