summaryrefslogtreecommitdiff
path: root/cmdline/apt-key
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-02-09 10:20:52 +0100
committerMichael Vogt <mvo@debian.org>2011-02-09 10:20:52 +0100
commit790b328a44d83401d6b89a23338344fe63ea91fd (patch)
treeba2130b01253e446efb22c51938623805b78d4e1 /cmdline/apt-key
parent24f634e951df86f41ae1838f2acd99f6657a3c84 (diff)
parent4fe76b0650f6fe6e61751f3a151f7282776465cc (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'cmdline/apt-key')
-rwxr-xr-xcmdline/apt-key2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key b/cmdline/apt-key
index c1e01a776..3838fafcd 100755
--- a/cmdline/apt-key
+++ b/cmdline/apt-key
@@ -7,7 +7,7 @@ unset GREP_OPTIONS
# implodes if there isn't one available
GPG_CMD='gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg'
-if ! id -u > /dev/null; then
+if [ "$(id -u)" -eq 0 ]; then
GPG_CMD="$GPG_CMD --trustdb-name /etc/apt/trustdb.gpg"
fi