mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
fix shellcheck warnings.
This commit is contained in:
parent
0c538f7527
commit
e799ef2977
14
acme.sh
14
acme.sh
@ -2958,7 +2958,7 @@ renew() {
|
||||
|
||||
_isEcc="$2"
|
||||
|
||||
_initpath $Le_Domain "$_isEcc"
|
||||
_initpath "$Le_Domain" "$_isEcc"
|
||||
|
||||
_info "$(__green "Renew: '$Le_Domain'")"
|
||||
if [ ! -f "$DOMAIN_CONF" ]; then
|
||||
@ -2979,24 +2979,24 @@ renew() {
|
||||
if [ -z "$FORCE" ] && [ "$Le_NextRenewTime" ] && [ "$(_time)" -lt "$Le_NextRenewTime" ]; then
|
||||
_info "Skip, Next renewal time is: $(__green "$Le_NextRenewTimeStr")"
|
||||
_info "Add '$(__red '--force')' to force to renew."
|
||||
return $RENEW_SKIP
|
||||
return "$RENEW_SKIP"
|
||||
fi
|
||||
|
||||
IS_RENEW="1"
|
||||
issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" "$Le_PreHook" "$Le_PostHook" "$Le_RenewHook" "$Le_LocalAddress"
|
||||
res=$?
|
||||
res="$?"
|
||||
if [ "$res" != "0" ]; then
|
||||
return $res
|
||||
return "$res"
|
||||
fi
|
||||
|
||||
if [ "$Le_DeployHook" ]; then
|
||||
deploy $Le_Domain "$Le_DeployHook" "$Le_Keylength"
|
||||
res=$?
|
||||
deploy "$Le_Domain" "$Le_DeployHook" "$Le_Keylength"
|
||||
res="$?"
|
||||
fi
|
||||
|
||||
IS_RENEW=""
|
||||
|
||||
return $res
|
||||
return "$res"
|
||||
}
|
||||
|
||||
#renewAll [stopRenewOnError]
|
||||
|
Loading…
Reference in New Issue
Block a user