summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commitpkg.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 43cc015..2216b54 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -156,15 +156,14 @@ for _arch in ${arch[@]}; do
fi
uploads+=("$pkgfile")
- if [[ $SIGNPKG == 'y' ]]; then
+ sigfile="${pkgfile}.sig"
+ if [[ $SIGNPKG == 'y' ]] && [ ! -f "${sigfile}" ]; then
echo "Signing package ${pkgfile}..."
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY="-u ${GPGKEY}"
fi
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
fi
-
- sigfile="${pkgfile}.sig"
if [ -f "${sigfile}" ]; then
uploads+=("$sigfile")
elif [[ $SIGNPKG == 'y' ]]; then