From 1e7fb8243a4f4ae0de3040d6a33844f3be7f0f83 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 8 Apr 2022 20:33:25 +0100 Subject: [PATCH] Silence cleanup() Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index b65cc8e..b22288f 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -350,7 +350,7 @@ cleanup() { [ -z "$EASYRSA_TEMP_DIR_session" ] || rm -rf "$EASYRSA_TEMP_DIR_session" # shellcheck disable=SC3040 (stty echo 2>/dev/null) || { (set -o echo 2>/dev/null) && set -o echo; } - echo "" # just to get a clean line + [ "$EASYRSA_SILENT" ] || echo "" # just to get a clean line } # => cleanup() easyrsa_openssl() {