summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-28 22:36:41 -0400
committerDave Reisner <d@falconindy.com>2011-06-28 23:15:58 -0400
commit9a29888ba72694ed0a8cba620387b3ee1ee39baa (patch)
treeed16f0ce35ff825cc1906ec9e0ff5bf357efeead
parent5f6e8c92741939a098bc14371fcde904fc9ed613 (diff)
downloadpacman-9a29888ba72694ed0a8cba620387b3ee1ee39baa.tar.xz
makepkg: simplify SIGNPKG check
Signed-off-by: Dave Reisner <d@falconindy.com>
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index b7246f1c..b844c65f 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2008,9 +2008,7 @@ if [[ -n "${PKGLIST[@]}" ]]; then
fi
# check if gpg signature is to be created and if signing key is valid
-if [[ -z "$SIGNPKG" && $(check_buildenv sign) == 'y' ]]; then
- SIGNPKG='y'
-fi
+[[ -z $SIGNPKG ]] && SIGNPKG=$(check_buildenv sign)
if [[ $SIGNPKG == 'y' ]]; then
if ! gpg --list-key ${GPGKEY} &>/dev/null; then
if [[ ! -z $GPGKEY ]]; then