spm

simple password manager
git clone anongit@rnpnr.xyz:spm.git
Log | Files | Refs | Feed | README | LICENSE

Commit: f78ad33df9dace384ef5596e2f6ca27720fecbcc
Parent: 2ac8d1947dab3f545fe42d910681dd0253cb79a3
Author: Klemens Nanni
Date:   Sun, 20 Nov 2016 02:52:50 +0100

Fix $ (regex) in entry names

'group/1$' denoting the exact file(s) named 'group/1.gpg', however using
the regular expression for line ending ($) would not work due to the
file ending. This commit corrects the user given expression to match the
actual file name.

This fixes #1[1].

1:	https://notabug.org/kl3/spm/issues/1

Diffstat:
Mspm.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spm.sh b/spm.sh @@ -55,7 +55,7 @@ readpw() { _find() { find "${STORE_DIR}"/ \( -type f -o -type l \) -name \*.gpg \ - | grep -G -i "${1}" + | grep -G -i "$(printf '%s' "${1}" | sed -e s/\$$/.gpg$/)" } view() {