Skip to content

Commit

Permalink
chore(venv): use 'exit' instead of 'return' upon shell error (#10855)
Browse files Browse the repository at this point in the history
Shell utility 'return' can only be used to return from Shell functions.

FTI-5071
  • Loading branch information
outsinre authored May 16, 2023
1 parent 0800353 commit 77e4e12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/dependency_services/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $DOCKER_COMPOSE up -d

if [ $? -ne 0 ]; then
echo "Something goes wrong, please check $DOCKER_COMPOSE output"
return
exit 1
fi

# [service_name_in_docker_compose]="env_var_name_1:port_1_in_docker_compose env_var_name_2:port_2_in_docker_compose"
Expand Down
2 changes: 1 addition & 1 deletion scripts/dependency_services/up.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bash "$cwd/common.sh" $KONG_SERVICE_ENV_FILE up

if test $status -ne 0
echo "Something goes wrong, please check common.sh output"
return
exit 1
end

source $KONG_SERVICE_ENV_FILE
Expand Down
2 changes: 1 addition & 1 deletion scripts/dependency_services/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
bash "$cwd/common.sh" $KONG_SERVICE_ENV_FILE up
if [ $? -ne 0 ]; then
echo "Something goes wrong, please check common.sh output"
return
exit 1
fi

. $KONG_SERVICE_ENV_FILE
Expand Down

1 comment on commit 77e4e12

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:77e4e124532be603075f257ab8173d59d5d336b9
Artifacts available https://github.com/Kong/kong/actions/runs/4987692046

Please sign in to comment.