[PATCH] Allow comments in .gpg-id

Amir Yalon quoiceehoh-20180826 at yxejamir.net
Wed Dec 18 10:39:37 CET 2019


On Tue, Dec 17, 2019, at 18:55, Kjetil Torgrim Homme wrote:
> - while read -r gpg_id; do
> + while read -r gpg_id additional_columns; do
> + case $additional_columns in
> + ""|"# "*) : ;; # only keep first column, strip comment
> + *) gpg_id="${gpg_id} ${additional_columns}" ;;
> + esac
It may be simpler to do gpg_id="${gpg_id%%#*}" instead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20191218/866491ba/attachment.html>


More information about the Password-Store mailing list