[PATCH util-modular v2] release.sh: unset GPGKEY if already existing

Andres Gomez agomez at igalia.com
Wed Apr 19 12:59:33 UTC 2017


GPGKEY may already exist in the environment. In that case, just
unset it.

v2: unsetting is safer than redefining to quietly use a potentially
    wrong key stored in the variable (Peter).

Signed-off-by: Andres Gomez <agomez at igalia.com>
Cc: Emil Velikov <emil.velikov at collabora.com>
Cc: Peter Hutterer <peter.hutterer at who-t.net>
---
 release.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/release.sh b/release.sh
index f976f94..b8a0aaf 100755
--- a/release.sh
+++ b/release.sh
@@ -808,6 +808,11 @@ if [ "x$GPG" = "x" ] ; then
     fi
 fi
 
+# Unset GPGKEY if needed
+if [ ! -z ${GPGKEY+x} ] ; then
+    unset GPGKEY
+fi
+
 # Set the default make tarball creation command
 MAKE_DIST_CMD=distcheck
 
-- 
2.11.0



More information about the xorg-devel mailing list