diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index dfd123a..5421458 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -298,7 +298,7 @@ clean_temp() { prog_exit() { ESTAT=0 [ ! -z "$1" ] && ESTAT=$1 - (set -o echo 2>/dev/null) || stty echo + (stty echo 2>/dev/null) || set -o echo echo "" # just to get a clean line exit "$ESTAT" } # => prog_exit() @@ -463,9 +463,9 @@ Your newly created PKI dir is: $EASYRSA_PKI hide_read_pass() { - (set +o echo 2>/dev/null) || stty -echo + (stty -echo 2>/dev/null) || set +o echo read -r "$@" - (set -o echo 2>/dev/null) || stty echo + (stty echo 2>/dev/null) || set -o echo } # => hide_read_pass() # build-ca backend: