aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-09-01 14:48:09 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-09-01 14:48:09 -0500
commitcca9f1e6e2dff115a2f1a3e7357fc794d1d58302 (patch)
tree2107da739ff432b667be8bfdadd325a6b5431c08
parent744b12c814c7193ef86432c844abbdf0a2404df3 (diff)
fix(pass): fix passmenu
-rwxr-xr-xsh/.local/bin/passmenu9
1 files changed, 2 insertions, 7 deletions
diff --git a/sh/.local/bin/passmenu b/sh/.local/bin/passmenu
index 4e0b265..e74aafb 100755
--- a/sh/.local/bin/passmenu
+++ b/sh/.local/bin/passmenu
@@ -1,9 +1,4 @@
#!/bin/sh
-for file in "$PASSWORD_STORE_DIR"/**/*.gpg; do
- if [ -e "$file" ]; then
- file="${file#"$PASSWORD_STORE_DIR"/}"
- printf '%s\n' "${file%.gpg}"
- fi
-done
-exit 0
+find "$PASSWORD_STORE_DIR" -name '*.gpg' |
+ sed "s|^$PASSWORD_STORE_DIR/||;s/\.gpg$//"