new directory

This commit is contained in:
tavo-wasd 2023-08-12 19:22:50 -06:00
parent 01d1aeccbd
commit d145aeea33
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
# Ask for password name in vault
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' |
sed 's/.*\/\(.*\)\.gpg$/\1/' | menu "OTP:")"
sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | menu "Password:")"
# Exit if none chosen
[ -z "$password" ] && exit

View file

@ -5,7 +5,7 @@ PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
# Ask for password name in vault
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' |
sed 's/.*\/\(.*\)\.gpg$/\1/' | menu "Password:")"
sed "s@$PASSWORD_STORE_DIR/@@g ; s@.gpg@@g" | menu "Password:")"
# Exit if none chosen
[ -z "$password" ] && exit