diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-08-15 04:41:57 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-11-20 22:53:31 -0500 |
commit | 3d15a312d71ab8f701ac7e0f1dc199ed16a98e3c (patch) | |
tree | 72975b09c8119045aaed4d2282a9ac2c07a5fc8d /src/librefetch/librefetch | |
parent | a4b6f4b7be1674143d92d43d59aa77b6b8439fde (diff) |
housekeeping
Diffstat (limited to 'src/librefetch/librefetch')
-rwxr-xr-x | src/librefetch/librefetch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index 37f1641..f963361 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -387,19 +387,18 @@ modified_srcbuild() { ################################################################################ -# This function is taken almost verbatim from makepkg create_signature() { - local ret=$EXIT_SUCCESS local filename="$1" + local gpg_cmd=( gpg --detach-sign --use-agent --no-armor ) local gpg_remind_msg="Ensure that your GPG key is referenced in the PKGBUILD 'validpgpkeys' array." - local SIGNWITHKEY=() + local ret=${EXIT_SUCCESS} - if [[ -n $GPGKEY ]]; then - SIGNWITHKEY=(-u "${GPGKEY}") + if [[ -n "${GPGKEY}" ]]; then + gpg_cmd=( --local-user "${GPGKEY}" ) fi msg "Signing libre source-ball..." - gpg --detach-sign --use-agent "${SIGNWITHKEY[@]}" --no-armor "$filename" &>/dev/null || ret=$EXIT_FAILURE + ${gpg_cmd[@]} "${filename}" &>/dev/null || ret=${EXIT_FAILURE} if (( ! ret )); then msg2 "Created signature file: %s. @@ -409,8 +408,9 @@ create_signature() { If you can not sign it now on this machine, you can take it home, and run librerelease on it. ${gpg_remind_msg}" - return $ret fi + + return ${ret} } |