stty
This commit is contained in:
parent
3b062767c3
commit
c4e9f06cb2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue