summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-01-24 16:44:49 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-09-27 00:12:14 +0200
commit84b286f65c55e21b4734a17474f1cba464cbbd9c (patch)
tree364a15fc61d95bdf5dbab0be79bbfc37e1fb829b /cmdline
parent3d0def059874a6e63566ce13579de296ccd26932 (diff)
all errors should be printed to stderr
Git-Dch: Ignore
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-key.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in
index d50ad40ac..e592925d6 100644
--- a/cmdline/apt-key.in
+++ b/cmdline/apt-key.in
@@ -43,7 +43,7 @@ aptkey_echo() { echo "$@"; }
requires_root() {
if [ "$(id -u)" -ne 0 ]; then
- echo >&1 "ERROR: This command can only be used by root."
+ echo >&2 "ERROR: This command can only be used by root."
exit 1
fi
}
@@ -63,11 +63,11 @@ add_keys_with_verify_against_master_keyring() {
MASTER=$2
if [ ! -f "$ADD_KEYRING" ]; then
- echo "ERROR: '$ADD_KEYRING' not found"
+ echo >&2 "ERROR: '$ADD_KEYRING' not found"
return
- fi
+ fi
if [ ! -f "$MASTER" ]; then
- echo "ERROR: '$MASTER' not found"
+ echo >&2 "ERROR: '$MASTER' not found"
return
fi
@@ -175,7 +175,7 @@ update() {
fi
done
else
- echo "Warning: removed keys keyring $REMOVED_KEYS missing or not readable" >&2
+ echo >&2 "Warning: removed keys keyring $REMOVED_KEYS missing or not readable"
fi
}