From e4b947db2f55e3f65e9fcea4e21649d272ec960d Mon Sep 17 00:00:00 2001 From: Zack T Date: Thu, 12 Nov 2020 13:40:18 -0700 Subject: [PATCH] v1.3.0 = Possible support of macOS 11 Big Sur Adds support for Big Sur as of 11.0.1 RC2 --- .../jamf_ea_LastOSUpdateInstalled.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jamf Pro/Extension Attributes/jamf_ea_LastOSUpdateInstalled.py b/Jamf Pro/Extension Attributes/jamf_ea_LastOSUpdateInstalled.py index 74cda37..0c8ef33 100644 --- a/Jamf Pro/Extension Attributes/jamf_ea_LastOSUpdateInstalled.py +++ b/Jamf Pro/Extension Attributes/jamf_ea_LastOSUpdateInstalled.py @@ -2,7 +2,7 @@ """ Script Name: jamf_ea_LastOSUpdateInstalled.py By: Zack Thompson / Created: 8/23/2019 -Version: 1.2.0 / Updated: 10/21/2020 / By: ZT +Version: 1.3.0 / Updated: 11/12/2020 / By: ZT Description: A Jamf Pro Extension Attribute to pull the last operating system update installed. """ @@ -29,7 +29,7 @@ def main(): # Define the updates that we're concerned with patternProcessNames = re.compile("(?:macOS Installer)|(?:OS X Installer)|(?:softwareupdated)") - patternDisplayName = re.compile("(?:macOS .+ Beta)|(?:macOS Catalina 10\.15\.\d)|(?:macOS 10\.14\.\d Update)|(?:Install macOS High Sierra)|(?:macOS Sierra Update)|(?:OS X El Capitan Update)|(?:Security Update \d\d\d\d-\d\d\d).*") + patternDisplayName = re.compile("(?:macOS .+ Beta)|(?:macOS 11.+)|(?:macOS Catalina 10\.15\.\d)|(?:macOS 10\.14\.\d Update)|(?:Install macOS High Sierra)|(?:macOS Sierra Update)|(?:OS X El Capitan Update)|(?:Security Update \d\d\d\d-\d\d\d).*") patternPackageIdentifiers = re.compile("(?:com\.apple\.pkg\.macOSBrain)|(?:com\.apple\.pkg\.InstallAssistantMAS)") # Verify file exists @@ -42,9 +42,9 @@ def main(): for update in reversed(plist_Contents): if patternProcessNames.search(update["processName"]): if patternDisplayName.search(update["displayName"]): - for package in update["packageIdentifiers"]: - if patternPackageIdentifiers.search(package): - continue + # for package in update["packageIdentifiers"]: + # if patternPackageIdentifiers.search(package): + # continue lastUpdate = '' lastUpdate = lastUpdate + str(update["displayName"]).lstrip('Install ')