diff options
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/librerelease b/librerelease index 64f8887..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 } @@ -83,6 +89,11 @@ function clean { find ${WORKDIR}/staging/ -type f -delete } +if [ -w / ]; then + error "Run $0 as normal user" + exit 1 +fi + while getopts 'hlcn' arg; do case $arg in h) usage; exit 0 ;; |