mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
147 stars 28 forks source link

Catalina - Software update -list has different arguments for reboot or recommended #32

Closed master-vodawagner closed 4 years ago

master-vodawagner commented 4 years ago

Looks like if you want this to work with Catalina you need to change the search arguments for software update -list to the following

Line 119 if [[ "$UPDATE_CHECK" == "[restart]" ]]

Should become if [[ "$UPDATE_CHECK" == "Action: restart" ]]

Line 126 elif [[ "$UPDATE_CHECK" == "[recommended]" ]]

Should become

elif [[ "$UPDATE_CHECK" == Recommended: YES” ]]

Screenshot 2019-09-27 at 17 10 18
mpanighetti commented 4 years ago

Thanks! Not sure if we want to wait for the GM to confirm the new wording is still in use, but this should be a simple change to make once Catalina is supported.

master-vodawagner commented 4 years ago

Looks like the changes are permanent now

Title: macOS Catalina Developer Beta, Version: 1, Size: 4765007K, Recommended: YES, Action: restart,

mpanighetti commented 4 years ago

Resolved in #34.