mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-08 02:55:56 +01:00
gen_sdk_package.sh: Use a more general pattern for finding the SDKs
so the script has some hope of working when macOS is released. Also make it show an error message if no SDKs are found instead of just stopping.
This commit is contained in:
parent
610542781e
commit
2752b1c9e2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user