summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 18:10:51 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 18:10:51 -0300
commit971e5b7d0cd614e1be3a82380ef16911f2d9cefe (patch)
treeb8df0083c63c12ac2f2f56f2573a370f70520229 /librerelease
parent869ca57106526a8e6b2dd67d3fafbb3e7cee4a3b (diff)
Be more informative + don't allow empty SIGEXT
Diffstat (limited to 'librerelease')
-rwxr-xr-xlibrerelease6
1 files changed, 6 insertions, 0 deletions
diff --git a/librerelease b/librerelease
index c4584e1..f31bc3a 100755
--- a/librerelease
+++ b/librerelease
@@ -47,6 +47,11 @@ function list_packages {
}
function sign_packages {
+ if [ -z "${SIGEXT}" ]; then
+ SIGEXT=.sig
+ warning "Empty SIGEXT var, using default .sig"
+ fi
+
if [ -z "${GPG_AGENT_INFO}" ]; then
warning "It's better to use gpg-agent to sign packages in batches"
fi
@@ -66,6 +71,7 @@ function sign_packages {
fi
fi
+ msg2 "Signing ${package}..."
gpg --default-key "${SIGID}" --output "${package}${SIGEXT}" --detach-sig "${package}"
done
}