summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2017-04-20 10:38:03 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2017-04-21 09:45:16 +1000
commit5e213276183aae1bb8d192d74322ac0990c388ae (patch)
tree841614729d61ef580dfede8d507d1d5ba356b9f4
parentac00c5e98301847462f2a6c8502ab434dfde70e7 (diff)
release.sh: unconditionally unset GPGKEY
GPGKEY may already exist in the environment. Unconditionally unset it to avoid any problem. v2: unsetting is safer than redefining to quietly use a potentially wrong key stored in the variable (Peter). v3: Simplify by unconditionally unsetting GPGKEY (Peter). Signed-off-by: Andres Gomez <agomez@igalia.com> Cc: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-xrelease.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/release.sh b/release.sh
index f976f94..ff89d2e 100755
--- a/release.sh
+++ b/release.sh
@@ -808,6 +808,9 @@ if [ "x$GPG" = "x" ] ; then
fi
fi
+# Avoid problems if GPGKEY is already set in the environment
+unset GPGKEY
+
# Set the default make tarball creation command
MAKE_DIST_CMD=distcheck