diff options
-rwxr-xr-x | macosx-setup.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx-setup.sh b/macosx-setup.sh index bd5a6141fc..f7418af0f0 100755 --- a/macosx-setup.sh +++ b/macosx-setup.sh @@ -443,7 +443,8 @@ fi # # If we have SDKs available, the default target OS is the major version -# of the one we're running; get that and strip off the third component. +# of the one we're running; get that and strip off the third component +# if present. # for i in /Developer/SDKs \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs \ @@ -451,7 +452,7 @@ for i in /Developer/SDKs \ do if [ -d "$i" ] then - min_osx_target=`sw_vers -productVersion | sed 's/\([[0-9]]*\).\([[0-9]]*\).[[0-9]]*/\1.\2/'` + min_osx_target=`sw_vers -productVersion | sed 's/\([0-9]*\)\.\([0-9]*\)\.[0-9]*/\1.\2/'` # # That's also the OS whose SDK we'd be using. |