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:
committed by
Tom Limoncelli
parent
bdd983b96d
commit
620f77fbe9
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user