From a271b43cbd76cc30406202c49041b552656538bd Mon Sep 17 00:00:00 2001 From: Richard Towers Date: Fri, 11 Jun 2021 18:39:11 +0200 Subject: Strip comments in gpg-id files --- src/password-store.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 77f3eda..2b2d208 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -100,6 +100,8 @@ set_gpg_recipients() { local gpg_id while read -r gpg_id; do + gpg_id="${gpg_id%%#*}" # strip comment + [[ -n $gpg_id ]] || continue GPG_RECIPIENT_ARGS+=( "-r" "$gpg_id" ) GPG_RECIPIENTS+=( "$gpg_id" ) done < "$current" -- cgit v1.2.3