mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +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"
|
_isEcc="$2"
|
||||||
|
|
||||||
_initpath $Le_Domain "$_isEcc"
|
_initpath "$Le_Domain" "$_isEcc"
|
||||||
|
|
||||||
_info "$(__green "Renew: '$Le_Domain'")"
|
_info "$(__green "Renew: '$Le_Domain'")"
|
||||||
if [ ! -f "$DOMAIN_CONF" ]; then
|
if [ ! -f "$DOMAIN_CONF" ]; then
|
||||||
@ -2979,24 +2979,24 @@ renew() {
|
|||||||
if [ -z "$FORCE" ] && [ "$Le_NextRenewTime" ] && [ "$(_time)" -lt "$Le_NextRenewTime" ]; then
|
if [ -z "$FORCE" ] && [ "$Le_NextRenewTime" ] && [ "$(_time)" -lt "$Le_NextRenewTime" ]; then
|
||||||
_info "Skip, Next renewal time is: $(__green "$Le_NextRenewTimeStr")"
|
_info "Skip, Next renewal time is: $(__green "$Le_NextRenewTimeStr")"
|
||||||
_info "Add '$(__red '--force')' to force to renew."
|
_info "Add '$(__red '--force')' to force to renew."
|
||||||
return $RENEW_SKIP
|
return "$RENEW_SKIP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IS_RENEW="1"
|
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"
|
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
|
if [ "$res" != "0" ]; then
|
||||||
return $res
|
return "$res"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Le_DeployHook" ]; then
|
if [ "$Le_DeployHook" ]; then
|
||||||
deploy $Le_Domain "$Le_DeployHook" "$Le_Keylength"
|
deploy "$Le_Domain" "$Le_DeployHook" "$Le_Keylength"
|
||||||
res=$?
|
res="$?"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IS_RENEW=""
|
IS_RENEW=""
|
||||||
|
|
||||||
return $res
|
return "$res"
|
||||||
}
|
}
|
||||||
|
|
||||||
#renewAll [stopRenewOnError]
|
#renewAll [stopRenewOnError]
|
||||||
|
Loading…
Reference in New Issue
Block a user