]> xenbits.xensource.com Git - people/gdunlap/mlib.git/commitdiff
release.sh: More minor fixes master
authorGeorge Dunlap <george.dunlap@citrix.com>
Tue, 17 May 2016 17:43:07 +0000 (18:43 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 17 May 2016 17:43:07 +0000 (18:43 +0100)
- 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 <george.dunlap@citrix.com>
release.sh

index e14bdb9be95c60208aa890228d8d49d593c73ffc..a5ae238ea77477e2f852dbd8a53f004befe1265e 100644 (file)
@@ -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"