Merge branch 'v3.0.6' of https://github.com/TinCanTech/easy-rsa into TinCanTech-v3.0.6
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
commit
e7bd1efa91
@ -454,17 +454,9 @@ Your newly created PKI dir is: $EASYRSA_PKI
|
|||||||
|
|
||||||
hide_read_pass()
|
hide_read_pass()
|
||||||
{
|
{
|
||||||
test_file="$EASYRSA/bin/sh.exe"
|
(set +o echo 2>/dev/null) || stty -echo
|
||||||
if [ -f "$test_file" ]
|
read -r "$@"
|
||||||
then
|
(set -o echo 2>/dev/null) || stty echo
|
||||||
set +o echo
|
|
||||||
read -r "$@"
|
|
||||||
set -o echo
|
|
||||||
else
|
|
||||||
stty -echo
|
|
||||||
read -r "$@"
|
|
||||||
stty echo
|
|
||||||
fi
|
|
||||||
} # => hide_read_pass()
|
} # => hide_read_pass()
|
||||||
|
|
||||||
# build-ca backend:
|
# build-ca backend:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user