From bbca61bfad0ff67cea1fb968dca0722e77af4095 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Thu, 28 Jul 2022 20:50:09 -0400 Subject: [PATCH] Just don't sign releases if there's no secret key provided. --- make.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/make.sh b/make.sh index 8aab479..c8470b2 100644 --- a/make.sh +++ b/make.sh @@ -110,12 +110,6 @@ recipe_release() { exit 1 fi - if [ -z "$TELODENDRIA_SIGNIFY_SECRET" ]; then - echo "No signify secret key specified." - echo "Set TELODENDRIA_SIGNIFY_SECRET." - exit 1 - fi - mkdir -p "$TELODENDRIA_PUB/pub/v$TELODENDRIA_VERSION" cd "$TELODENDRIA_PUB/pub/v$TELODENDRIA_VERSION" @@ -126,9 +120,15 @@ recipe_release() { rm -r "Telodendria-v$TELODENDRIA_VERSION" sha256 "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \ > "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sha256" - signify -S -s "$TELODENDRIA_SIGNIFY_SECRET" \ - -m "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \ - -x "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sig" + + if [ ! -z "$TELODENDRIA_SIGNIFY_SECRET" ]; then + signify -S -s "$TELODENDRIA_SIGNIFY_SECRET" \ + -m "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \ + -x "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sig" + else + echo "Warning: TELODENDRIA_SIGNIFY_SECRET not net." + echo "The built tarball will not be signed." + fi } for recipe in $@; do