Possible Big Sur Version Check Issue

Issue #612 resolved
Pico Mitchell created an issue

Will the following code not run on macOS 11 Big Sur? https://bitbucket.org/twocanoes/macdeploystick/src/a7989eddae93d3339b54e30356da0c6ff13fd795/com.twocanoes.mds.main.sh#lines-248

I haven’t validated this, but noticed that without using SYSTEM_VERSION_COMPAT=1 somewhere then this would not be true on macOS 11 Big Sur. Or is SYSTEM_VERSION_COMPAT=1 being set somewhere that I’m not aware of?

If not, this could be fixed by replacing the the two sw_vers -productVersion calls with SYSTEM_VERSION_COMPAT=1 sw_vers -productVersion on lines 235 and 236. Or by checking for 11 or greater in the major version in another way.

Comments (3)

  1. timothy perfitt

    looks like i fixed this a while ago.please verify in 40030 or later. probably in a lot earlier builds as well :)

    thanks for filing!

  2. Log in to comment