#!/bin/zsh # This script is meant to be used with Jamf Pro and makes use of Jamf Helper. # The idea behind this script is that it alerts the user that there are required OS # updates that need to be installed. Rather than forcing updates to take place through the # command line using "softwareupdate", the user is encouraged to use the GUI to update. # In recent OS versions, Apple has done a poor job of testing command line-based workflows # of updates and failed to account for scenarios where users may or may not be logged in. # The update process through the GUI has not suffered from these kind of issues. The # script will allow end users to postpone/defer updates X amount of times and then will # give them one last change to postpone. # This script should work rather reliably going back to 10.12 and maybe further, but at # this point the real testing has only been done on 10.14. # Please note, that this script does NOT cache updates in advance. The reason for this is # tha...