summaryrefslogtreecommitdiff
path: root/bin/menuscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-04-15 17:37:53 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-04-15 17:37:53 +0200
commit25a2605405d8ec7645d0664914c3b7290745afec (patch)
tree8afe0d8828a3909bfe2774385c8bebc039cf6d6e /bin/menuscripts
parentc9a06111585c189607ff1e81b77bb32f0a25a992 (diff)
synced
Diffstat (limited to 'bin/menuscripts')
-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"