Skip to content

Commit d713986

Browse files
authored
Added support for macOS 13.5.1
1 parent 3ee3232 commit d713986

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

osxapp_vers

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

3-
# osxapp_vers 1.12
3+
# osxapp_vers 1.13
44
# Get product name, product version and build version of [Mac] OS X
55
# from "Install*OS X*.app", "Install macOS *.app" or "Mac OS X install DVD"
66
#
7-
# Copyright 2015-2022 Johann N. Loefflmann
7+
# Copyright 2015-2023 Johann N. Loefflmann
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License");
1010
# you may not use this file except in compliance with the License.
@@ -164,7 +164,12 @@ else
164164
# sudo chroot "/Volumes/BaseSystem.$$" /usr/bin/sw_vers
165165

166166
if [ $CONTCODE -eq 11 ]; then
167-
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/SFR/com_apple_MobileAsset_SFRSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
167+
if [ -d "/Volumes/BaseSystem.$$/SFR/" ]; then
168+
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/SFR/com_apple_MobileAsset_SFRSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
169+
# e.g. macOS 13.5.1
170+
else
171+
XMLCONTENT=$(unzip -c /Volumes/BaseSystem.$$/com_apple_MobileAsset_MacSoftwareUpdate/*.zip AssetData/boot/SystemVersion.plist)
172+
fi
168173
CONTCODE=1
169174
else
170175
XMLCONTENT=$(<"/Volumes/BaseSystem.$$/System/Library/CoreServices/SystemVersion.plist")

0 commit comments

Comments
 (0)