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 prompt="${1}"
|
||||||
local secret
|
local secret
|
||||||
printf "%s" "${prompt}" 1>&2
|
printf "%s" "${prompt}" 1>&2
|
||||||
read -r -s secret
|
stty -echo
|
||||||
|
read -r secret
|
||||||
|
stty echo
|
||||||
echo >&2
|
echo >&2
|
||||||
echo "${secret}"
|
echo "${secret}"
|
||||||
unset secret
|
unset secret
|
||||||
|
|
Loading…
Reference in a new issue