From b56357e1bc3260181a8e21679a57376de40ecb04 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sun, 1 Jan 2023 19:45:29 +0000 Subject: [PATCH] verify_cert(): Support global --batch mode Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 22b9864..a9509fb 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -3323,8 +3323,14 @@ Run easyrsa without commands for usage and command help." file_name_base="$1" shift + # Support global --batch mode + unset -v exit_with_error + if [ "$EASYRSA_BATCH" ]; then + exit_with_error=1 + EASYRSA_SILENT=1 + fi + # function opts support - unset -v exit_with_error easyrsa_error_exit while [ "$1" ]; do case "$1" in # batch flag, return status [0/1] to calling program