Browse Source

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.
pull/1536/head
lpeet 7 years ago
committed by GitHub
parent
commit
e13923e584
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      acme.sh

1
acme.sh

@ -4400,6 +4400,7 @@ renewAll() {
if [ "$rc" != "0" ]; then if [ "$rc" != "0" ]; then
if [ "$rc" = "$RENEW_SKIP" ]; then if [ "$rc" = "$RENEW_SKIP" ]; then
_info "Skipped $d" _info "Skipped $d"
_ret="$rc"
elif [ "$_stopRenewOnError" ]; then elif [ "$_stopRenewOnError" ]; then
_err "Error renew $d, stop now." _err "Error renew $d, stop now."
return "$rc" return "$rc"

Loading…
Cancel
Save