From e4e0bdfa73fbdb21e93e69c3ad9d66414681201c Mon Sep 17 00:00:00 2001 From: milki Date: Wed, 14 May 2014 00:15:17 +0200 Subject: Disable secmem warning when discovering keys Key discovery parses stderr output of gnupg. The secmem warning interferes with parsing. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 140b1bc..dadeea4 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -110,7 +110,7 @@ reencrypt_path() { done gpg_keys="$($GPG --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | LC_ALL=C sort -u)" fi - current_keys="$($GPG -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | LC_ALL=C sort -u)" + current_keys="$($GPG -v --no-secmem-warning --no-permission-warning --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | LC_ALL=C sort -u)" if [[ $gpg_keys != "$current_keys" ]]; then echo "$passfile_display: reencrypting to ${gpg_keys//$'\n'/ }" -- cgit v1.2.3