From 2752b1c9e236700ca3fdf6447d01e648cda277fe Mon Sep 17 00:00:00 2001 From: "David (Pololu)" Date: Sun, 5 Jun 2022 14:17:12 -0700 Subject: [PATCH] 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. --- tools/gen_sdk_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gen_sdk_package.sh b/tools/gen_sdk_package.sh index 238a63f..ce3bd1e 100755 --- a/tools/gen_sdk_package.sh +++ b/tools/gen_sdk_package.sh @@ -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