diff options
Diffstat (limited to 'commitpkg')
-rwxr-xr-x | commitpkg | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -132,7 +132,10 @@ for _arch in ${arch[@]}; do if [[ $SIGNPKG == 'y' ]]; then echo "Signing package ${pkgfile}..." - gpg --detach-sign --use-agent -u "${PACKAGER}" "${pkgfile}" || abort + if [[ -n $GPGKEY ]]; then + SIGNWITHKEY="-u ${GPGKEY}" + fi + gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort fi sigfile="${pkgfile}.sig" |