Merge pull request #350 from DavidEGrayson/osx_sdk_robust

Make gen_sdk_package.sh better at finding SDKs
This commit is contained in:
Thomas Pöchtrager 2022-06-06 15:39:25 +02:00 committed by GitHub
commit 336b65f512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,10 +148,10 @@ else
fi
fi
SDKS=$(ls | grep -E "^MacOSX12.*|^MacOSX11.*|^MacOSX10.*" | grep -v "Patch")
SDKS=$(ls | grep -E "^MacOSX\d.*" | grep -v Patch || echo)
if [ -z "$SDKS" ]; then
echo "No SDK found" 1>&2
echo "No SDK found in" $(pwd) 1>&2
exit 1
fi