diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-02-23 18:29:16 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-02-23 18:29:16 -0800 |
commit | 52128e55dd5f8e3ac0dc32a5137e293248078212 (patch) | |
tree | 731b279ba21b059d23ae8cecba60d4cb4794351a | |
parent | 354d39f9deb581b0256eea5ada402ead259ecff8 (diff) |
Some programs do not like \r when enter password
-rwxr-xr-x | sh/pme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ find "$HOME/.password-store/" \( -type f -o -type l \) -name '*.gpg' \ awk 'tolower($1) ~ /^(user|username):$/ {printf $2}' else # modified from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34 GPL-2.0-or-later code - IFS= read -r p; printf '%s\r' "$p" + IFS= read -r p; printf '%s' "$p" fi } fi |