diff --git a/utils/internal-request b/utils/internal-request index bab20da1..647a144a 100755 --- a/utils/internal-request +++ b/utils/internal-request @@ -121,7 +121,7 @@ if [ "$SYNC" = "true" ]; then CONDITION_REASON=$(echo "$CONDITIONS" | jq -r '.[0].reason') if [ "$CONDITION_REASON" != "Running" ]; then echo "InternalRequest completed." - exit 0 + [ "${CONDITION_REASON}" == "Succeeded" ]; exit $? fi fi fi