summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-02-23 18:29:16 -0800
committerXiao Pan <xyz@flylightning.xyz>2025-02-23 18:29:16 -0800
commit52128e55dd5f8e3ac0dc32a5137e293248078212 (patch)
tree731b279ba21b059d23ae8cecba60d4cb4794351a
parent354d39f9deb581b0256eea5ada402ead259ecff8 (diff)
Some programs do not like \r when enter password
-rwxr-xr-xsh/pme2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/pme b/sh/pme
index 16d1c09..be41b51 100755
--- a/sh/pme
+++ b/sh/pme
@@ -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