summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-key.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in
index 80aacfa5e..0f9118492 100644
--- a/cmdline/apt-key.in
+++ b/cmdline/apt-key.in
@@ -483,7 +483,7 @@ shift
cleanup_gpg_home() {
if [ -z "$GPGHOMEDIR" ]; then return; fi
if command_available 'gpgconf'; then
- GNUPGHOME="${GPGHOMEDIR}" gpgconf --kill gpg-agent
+ GNUPGHOME="${GPGHOMEDIR}" gpgconf --kill gpg-agent >/dev/null 2>&1 || true
fi
rm -rf "$GPGHOMEDIR"
}