mkrelease.sh: add --notar

This commit is contained in:
Harald Hoyer 2018-09-13 10:58:26 +02:00
parent c275d3c6d8
commit d6f7aec884

View file

@ -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