From e13923e58427a45a13c00c04c365ee60985dace2 Mon Sep 17 00:00:00 2001 From: lpeet Date: Tue, 17 Apr 2018 23:14:17 -0600 Subject: [PATCH] Set $_ret to $rc ("2") when "$rc" = "$RENEW_SKIP" $_ret is set to 0 above and is not set to 2 on "Skipped". Script exits with return code 0 when it should be 2. --- acme.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/acme.sh b/acme.sh index a5e4b391..8645437e 100755 --- a/acme.sh +++ b/acme.sh @@ -4400,6 +4400,7 @@ renewAll() { if [ "$rc" != "0" ]; then if [ "$rc" = "$RENEW_SKIP" ]; then _info "Skipped $d" + _ret="$rc" elif [ "$_stopRenewOnError" ]; then _err "Error renew $d, stop now." return "$rc"