diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-16 10:09:29 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-16 10:09:29 +0200 |
commit | 692bc52c20da866630fa401be6740bc38f8f8574 (patch) | |
tree | be52e621dbbb15bfd2f43ec92053e4b0a817c392 /bin/menuscripts/mpass-otp | |
parent | 197a1a74f468d9d69d624b19f90280a3946455e5 (diff) | |
parent | 19ea61db733c9152f2b334b0ae9871f81ac3664d (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/menuscripts/mpass-otp')
-rwxr-xr-x | bin/menuscripts/mpass-otp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp index 86690d3..52d1341 100755 --- a/bin/menuscripts/mpass-otp +++ b/bin/menuscripts/mpass-otp @@ -1,6 +1,6 @@ #!/bin/sh -pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | - sed 's/\.gpg$//' | +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -iname "*.gpg" | + sed "/^\./d;s#^$PASSWORD_STORE_DIR/keys/otp/##;s/\.gpg$//" | commander -c)" [ "$pass" ] || exit 1 pass otp -c keys/otp/"$pass" |