File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # osxapp_vers 1.12
3
+ # osxapp_vers 1.13
4
4
# Get product name, product version and build version of [Mac] OS X
5
5
# from "Install*OS X*.app", "Install macOS *.app" or "Mac OS X install DVD"
6
6
#
7
- # Copyright 2015-2022 Johann N. Loefflmann
7
+ # Copyright 2015-2023 Johann N. Loefflmann
8
8
#
9
9
# Licensed under the Apache License, Version 2.0 (the "License");
10
10
# you may not use this file except in compliance with the License.
@@ -164,7 +164,12 @@ else
164
164
# sudo chroot "/Volumes/BaseSystem.$$" /usr/bin/sw_vers
165
165
166
166
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
168
173
CONTCODE=1
169
174
else
170
175
XMLCONTENT=$( < " /Volumes/BaseSystem.$$ /System/Library/CoreServices/SystemVersion.plist" )
You can’t perform that action at this time.
0 commit comments