diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-22 13:49:32 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-22 13:49:32 +0100 |
commit | 0a84c3d984349e96ddd8077cf2bdd9e08ccb4300 (patch) | |
tree | f04e127a4c6f98645ee3076f2031f5fc6e1b9f43 /bin/menuscripts/mpass-otp | |
parent | 7f2e035fcec31435fb93cd9d8258a6034b8caa7a (diff) | |
parent | 1024bf9cb8f38ff9cdd6e58a7614d1de8a5bbb29 (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/menuscripts/mpass-otp')
-rwxr-xr-x | bin/menuscripts/mpass-otp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp new file mode 100755 index 0000000..b60f953 --- /dev/null +++ b/bin/menuscripts/mpass-otp @@ -0,0 +1,6 @@ +#!/bin/sh +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | + sed 's/\.gpg$//' | + commander -c)" +[ "$pass" ] || exit 1 +pass otp -c keys/otp/"$pass" |