commit 60b199a3ee806670e36de05de49a084e8dc4372b parent d8087ee6f192ce5d71a51e81a256a8f0392a5c7a Author: hhvn <dev@haydenvh.com> Date: Sun, 14 Mar 2021 21:54:19 +0000 .s/b/dpass: ignore spaces Diffstat:
M | .scripts/bin/dpass | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scripts/bin/dpass b/.scripts/bin/dpass @@ -13,7 +13,7 @@ exit } chosen=$(printf "GENERATE\n$(cut -d ':' -f 1 < $PASS)" | dmenu -l 20 -i | tr '[:upper:]' '[:lower:]') -passwd=$(awk -F":" -v "chosen=$chosen" '$1 == chosen {print $2}' < .local/pass) +passwd=$(awk -F":" -v "chosen=$chosen" '$1 == chosen {print $2}' < .local/pass | tr -d ' ') case "$chosen" in "") exit 1 ;;