verify_cert(): Support global --batch mode

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-01-01 19:45:29 +00:00
parent efff1ad843
commit b56357e1bc
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

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