Silence 'not changed' output during keychain import (#200)

Previously the keychain import appears to have redirected stderr to stdout,
silenced lines that indicate a key has 'not changed' then send the output back
to stdout.  This behaviour has been carried over to the new GnuPG-2.1
compatible implementation.
This commit is contained in:
Jinn Koriech
2017-07-04 15:32:48 +01:00
committed by Tom Limoncelli
parent bdd983b96d
commit 620f77fbe9

View File

@@ -201,7 +201,7 @@ function prepare_keychain() {
make_self_deleting_tempfile keyringasc make_self_deleting_tempfile keyringasc
export LANG="C.UTF-8" export LANG="C.UTF-8"
$GPG --export --keyring "$(get_pubring_path)" >"$keyringasc" $GPG --export --keyring "$(get_pubring_path)" >"$keyringasc"
$GPG --import "$keyringasc" $GPG --import "$keyringasc" 2>&1 | egrep -v 'not changed$' >&2
echo '========== Importing keychain: DONE' >&2 echo '========== Importing keychain: DONE' >&2
} }