Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boy scouting #4975

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 6 additions & 4 deletions acme.sh
Expand Up @@ -345,7 +345,7 @@ _debug() {
fi
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_1" ]; then
_bash_debug=$(__debug_bash_helper)
_printargs "${_bash_debug}$@" >&2
_printargs "${_bash_debug}$*" >&2
fi
}

Expand Down Expand Up @@ -379,7 +379,7 @@ _debug2() {
fi
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_2" ]; then
_bash_debug=$(__debug_bash_helper)
_printargs "${_bash_debug}$@" >&2
_printargs "${_bash_debug}$*" >&2
fi
}

Expand Down Expand Up @@ -412,7 +412,7 @@ _debug3() {
fi
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_3" ]; then
_bash_debug=$(__debug_bash_helper)
_printargs "${_bash_debug}$@" >&2
_printargs "${_bash_debug}$*" >&2
fi
}

Expand Down Expand Up @@ -2709,6 +2709,7 @@ _clearAPI() {
}

#server
# shellcheck disable=SC2120
_initAPI() {
_api_server="${1:-$ACME_DIRECTORY}"
_debug "_init api for server: $_api_server"
Expand All @@ -2719,6 +2720,7 @@ _initAPI() {
while [ -z "$ACME_NEW_ACCOUNT" ] && [ "${_request_retry_times}" -lt "$MAX_API_RETRY_TIMES" ]; do
_request_retry_times=$(_math "$_request_retry_times" + 1)
response=$(_get "$_api_server")
# shellcheck disable=SC2181
if [ "$?" != "0" ]; then
_debug2 "response" "$response"
_info "Can not init api for: $_api_server."
Expand Down Expand Up @@ -7086,7 +7088,7 @@ _processAccountConf() {
}

_checkSudo() {
if [ -z "__INTERACTIVE" ]; then
if [ -z "${__INTERACTIVE}" ]; then
#don't check if it's not in an interactive shell
return 0
fi
Expand Down