From 1dfbba76d066e8b757362a308deb3933a8515f32 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 19 Jul 2021 14:57:20 +0200 Subject: [PATCH] make_osx: disable set -e during test of signing identity --- contrib/osx/make_osx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx index 835a790e0..c0c07326c 100755 --- a/contrib/osx/make_osx +++ b/contrib/osx/make_osx @@ -32,8 +32,10 @@ which xcodebuild > /dev/null 2>&1 || fail "Please install xcode command line too if [ -n "$CODESIGN_CERT" ]; then # Test the identity is valid for signing by doing this hack. There is no other way to do this. cp -f /bin/ls ./CODESIGN_TEST + set +e codesign -s "$CODESIGN_CERT" --dryrun -f ./CODESIGN_TEST > /dev/null 2>&1 res=$? + set -e rm -f ./CODESIGN_TEST if ((res)); then fail "Code signing identity \"$CODESIGN_CERT\" appears to be invalid."