Add required shellcheck to cleanup()

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
This commit is contained in:
Richard Bonhomme 2019-06-10 22:25:19 +01:00
parent 70ddded80b
commit 939ddc49da
No known key found for this signature in database
GPG Key ID: D7D49FA009D95091

View File

@ -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()