From 44a361fabcbf4a97132701804c834493a802d1ad Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Thu, 11 Jan 2024 18:19:30 +0100 Subject: pass: add support for passwords with backslashes --- .local/bin/menu/pass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin') 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) -- cgit v1.2.3-70-g09d2