diff options
author | Adam Stück <adam@adast.dk> | 2024-01-11 18:19:30 +0100 |
---|---|---|
committer | Adam Stück <adam@adast.dk> | 2024-01-11 18:19:30 +0100 |
commit | 44a361fabcbf4a97132701804c834493a802d1ad (patch) | |
tree | 2a7566763c8a0ddab21166c94e4c9bb1e6cf1cd8 | |
parent | 8d2c8e0d2027017ee02b2232c2f1f394fed13c8e (diff) |
pass: add support for passwords with backslashes
-rwxr-xr-x | .local/bin/menu/pass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/menu/pass b/.local/bin/menu/pass index 86fd1ee..112cb64 100755 --- a/.local/bin/menu/pass +++ b/.local/bin/menu/pass @@ -9,8 +9,8 @@ entry=$(find "$PASSWORD_STORE_DIR" -name '*.gpg' |\ eval "$MENU_CMD") || exit 1 details=$(pass "$entry") || exit 1 -user=$(echo "$details" | sed -n '2p' | sed 's|user: ||') -pass=$(echo "$details" | head -n1) +user=$(printf '%s' "$details" | sed -n '2p' | sed 's|user: ||') +pass=$(printf '%s' "$details" | head -n1) case "$(printf "autotype\npass\nuser" | eval "$MENU_CMD")" in autotype) |