From 482c4b517ffc2cd0d647e10534c9cb88cfe615a0 Mon Sep 17 00:00:00 2001 From: Richard Bonhomme <25598447+TinCanTech@users.noreply.github.com> Date: Sun, 16 Dec 2018 18:16:48 +0000 Subject: [PATCH] Fix password echo --- easyrsa3/easyrsa | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: