From c4e9f06cb24d925fbed0720e580015e4f65e3f3c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 13 Nov 2024 13:08:09 +0100 Subject: [PATCH] stty --- bash/util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/util.sh b/bash/util.sh index 458995f..8a345ba 100644 --- a/bash/util.sh +++ b/bash/util.sh @@ -14,7 +14,9 @@ read_secret() { local prompt="${1}" local secret printf "%s" "${prompt}" 1>&2 - read -r -s secret + stty -echo + read -r secret + stty echo echo >&2 echo "${secret}" unset secret