From 939ddc49da67edbc60c2906f80b0a62b11178696 Mon Sep 17 00:00:00 2001 From: Richard Bonhomme Date: Mon, 10 Jun 2019 22:25:19 +0100 Subject: [PATCH] Add required shellcheck to cleanup() Signed-off-by: Richard Bonhomme --- easyrsa3/easyrsa | 1 + 1 file changed, 1 insertion(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index f881202..2c025ec 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -328,6 +328,7 @@ easyrsa_mktemp() { # remove temp files and do terminal cleanups cleanup() { [ -z "$EASYRSA_TEMP_DIR_session" ] || rm -rf "$EASYRSA_TEMP_DIR_session" + # shellcheck disable=SC2039 (stty echo 2>/dev/null) || { (set -o echo 2>/dev/null) && set -o echo; } echo "" # just to get a clean line } # => cleanup()