balrog

A partial drop-in replacement for pass and pass-otp written in POSIX shell.
git clone https://git.stjo.hn/balrog
Log | Files | Refs | README | LICENSE

commit eac6999367c81384c8130641432859fee18ae5c5
parent 45337dae0bbb9903451e8d80845b840369a4574d
Author: St John Karp <contact@stjo.hn>
Date:   Sun, 27 Nov 2022 09:11:05 -0500

Remove the .gpg suffix from the end of ls and find results

Diffstat:
Mbalrog | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/balrog b/balrog @@ -114,7 +114,7 @@ while [ -n "$ACTION" ] ; do ;; find) find $STORE -type f -path "*$KEY*" | - sed "s|$STORE/||" + sed -e "s|$STORE/||" -e 's/\.gpg$//' ACTION='' ;; @@ -150,7 +150,7 @@ while [ -n "$ACTION" ] ; do # Otherwise find all files in the path specified. # `tree` is not a POSIX utility so I'm just using `find` here. find "$STORE/$KEY" -type f | - sed "s|$STORE/||" + sed -e "s|$STORE/||" -e 's/\.gpg$//' ACTION='' fi