index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | commitpkg.in | 5 |
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 |