Skip to content

Commit f21d366

Browse files
author
Syntaxheld
committed
improve handling of BaseSystem mounting
instead of hardcoding a growing list of OS names, we can just detect if the BaseSystem.dmg is immediately available. So when the Mojave successor comes along, users just need to set the `NOCHECK` env var to get rid of a warning, instead of the script failing.
1 parent 5f17f0c commit f21d366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osxapp_vers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ else
119119
exit
120120
fi
121121

122-
if [ "$OSNAME" = "Mojave" -o "$OSNAME" = "High Sierra" ]; then
122+
if [[ -e "$APPNAME/Contents/SharedSupport/BaseSystem.dmg" ]]; then
123123
# Starting with High Sierra ...
124124
# Mount the BaseSystem.dmg
125125
hdiutil attach "$APPNAME/Contents/SharedSupport/BaseSystem.dmg" \

0 commit comments

Comments
 (0)