From d6f7aec884a18ea7dee28c9d254a03b92e0dc384 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 13 Sep 2018 10:58:26 +0200 Subject: [PATCH] mkrelease.sh: add --notar --- mkrelease.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mkrelease.sh b/mkrelease.sh index 9cffe0c..bfccb21 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -14,6 +14,7 @@ TEMP=$( getopt -o '' \ --long certdir: \ --long nosign \ + --long notar \ --long help \ -- "$@" ) @@ -36,6 +37,10 @@ while true; do NOSIGN="1" shift 1; continue ;; + '--notar') + NOTAR="1" + shift 1; continue + ;; '--help') usage exit 0 @@ -65,6 +70,6 @@ IMAGE="${BASEDIR}/$(jq -r '.name' ${JSON})-$(jq -r '.version' ${JSON})" [[ -f sha512sum.txt.sig ]] || gpg2 --detach-sign sha512sum.txt ) -if ! [[ -e "$IMAGE".tgz ]]; then +if ! [[ $NOTAR ]] && ! [[ -e "$IMAGE".tgz ]]; then tar cf - -C "${IMAGE%/*}" "${IMAGE##*/}" | pigz -c > "$IMAGE".tgz fi