verify_cert(): Support global --batch mode
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
efff1ad843
commit
b56357e1bc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user