From 0248064235d6e594ba4cb5d695b3bf71a43dd7df Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 28 Apr 2022 14:19:47 +0100 Subject: [PATCH] Purge $req_opts from build_full() Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 9bdc1de..ddcea4b 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1311,7 +1311,6 @@ $ext_tmp" [ "$EASYRSA_SILENT" ] || print # Separate Notice below unset -v EASYRSA_BATCH # This is why batch mode should not silence output notice "\ - Certificate created at: $crt_out" return 0 @@ -1333,10 +1332,9 @@ Run easyrsa without commands for usage and commands." shift 2 # function opts support - req_opts= while [ -n "$1" ]; do case "$1" in - nopass) req_opts="$req_opts nopass" ;; + nopass) nopass=1 ;; inline) EASYRSA_INLINE=1 ;; *) warn "Ignoring unknown command option: '$1'" esac @@ -1354,8 +1352,7 @@ Matching file found at: " # create request EASYRSA_REQ_CN="$name" - # shellcheck disable=SC2086 # Ignore unquoted variables - gen_req "$name" batch $req_opts + gen_req "$name" batch ${nopass+ nopass} # Sign it ( sign_req "$crt_type" "$name" batch ) || {