- 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>
{
$arg_parse
- $requireargs v
+ $requireargs v tdir
git fetch || fail "git fetch"
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"