Improve hide_read_pass function
Follow example from prog_exit function
This commit is contained in:
parent
c1a6e3c4cd
commit
f17bcc9013
@ -446,9 +446,9 @@ Your newly created PKI dir is: $EASYRSA_PKI
|
|||||||
|
|
||||||
hide_read_pass()
|
hide_read_pass()
|
||||||
{
|
{
|
||||||
(set +o echo 2>/dev/null) && set +o echo || stty -echo
|
(set +o echo 2>/dev/null) || stty -echo
|
||||||
read -r "$@"
|
read -r "$@"
|
||||||
(set -o echo 2>/dev/null) && set -o echo || stty echo
|
(set -o echo 2>/dev/null) || stty echo
|
||||||
} # => hide_read_pass()
|
} # => hide_read_pass()
|
||||||
|
|
||||||
# build-ca backend:
|
# build-ca backend:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user