From e799ef2977a829a875851e54f5063bf43564e565 Mon Sep 17 00:00:00 2001 From: neilpang Date: Wed, 9 Nov 2016 22:09:30 +0800 Subject: [PATCH] fix shellcheck warnings. --- acme.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/acme.sh b/acme.sh index 1ea1cbf5..f983ea77 100755 --- a/acme.sh +++ b/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]