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.
This commit is contained in:
lpeet 2018-04-17 23:14:17 -06:00 committed by GitHub
parent ed3066aae7
commit e13923e584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"