From 5d966ef4badda2237151c4aeaae7970acbd3eee6 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 3 Feb 2020 14:38:19 +1100 Subject: [PATCH] fixup! Include `codesign` option with runtime hardening --- build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build b/build index d26f162..a929ec1 100755 --- a/build +++ b/build @@ -5,13 +5,13 @@ set -x clang -Ofast -Wall -Wextra -Werror -pedantic -std=c99 term-size.c -o term-size -# $SIGN should be the signing identity whose key is available in the keychain, -# e.g. "Node.js Foundation" -if [ "X$SIGN" == "X" ]; then - echo "No SIGN environment variable, skipping codesign" >&2 +# $CODE_SIGN_IDENTITY should be the signing identity whose key is available in +# the keychain, e.g. "Node.js Foundation" +if [[ -n $CODE_SIGN_IDENTITY ]]; then + echo "No CODE_SIGN_IDENTITY environment variable, skipping codesign" >&2 else codesign \ - --sign "$SIGN" \ + --sign "$CODE_SIGN_IDENTITY" \ --options runtime \ --timestamp \ term-size