From: George Dunlap Date: Tue, 17 May 2016 17:43:07 +0000 (+0100) Subject: release.sh: More minor fixes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;p=people%2Fgdunlap%2Fmlib.git release.sh: More minor fixes - Exit if you don't have the gpg key you need for signing, rather than carrying on anyway. - Make sure you have tdir set Signed-off-by: George Dunlap --- diff --git a/release.sh b/release.sh index e14bdb9..a5ae238 100644 --- a/release.sh +++ b/release.sh @@ -11,7 +11,7 @@ function release-make-tarball() { $arg_parse - $requireargs v + $requireargs v tdir git fetch || fail "git fetch" @@ -91,6 +91,7 @@ function release-sign-tarball() { if ! gpg --list-secret-keys | grep $key ; then info "Signature required; please run the following command with the public key available" info " gpg --detach-sign -u 'xen tree' $rtgz" + exit 0 fi gpg --detach-sign -u $key $rtgz || fail "Signing $rtgz"