Browse Source

make_osx: disable set -e during test of signing identity

patch-4
ThomasV 4 years ago
parent
commit
1dfbba76d0
  1. 2
      contrib/osx/make_osx

2
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."

Loading…
Cancel
Save