diff --git a/scripts/dependency_services/common.sh b/scripts/dependency_services/common.sh index df5f4aaacf4..22cde66e7bd 100644 --- a/scripts/dependency_services/common.sh +++ b/scripts/dependency_services/common.sh @@ -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" diff --git a/scripts/dependency_services/up.fish b/scripts/dependency_services/up.fish index da823df8186..f3d83f91c3c 100755 --- a/scripts/dependency_services/up.fish +++ b/scripts/dependency_services/up.fish @@ -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 diff --git a/scripts/dependency_services/up.sh b/scripts/dependency_services/up.sh index a3af6d19e87..ec665a0e132 100755 --- a/scripts/dependency_services/up.sh +++ b/scripts/dependency_services/up.sh @@ -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