summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mpass-otp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/menuscripts/mpass-otp')
-rwxr-xr-xbin/menuscripts/mpass-otp4
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"