From 0385df68a4292649a30dceda53f62abe30be6edd Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 29 Aug 2023 21:50:35 +0200 Subject: [PATCH] fix: [compose-core] quit with error if ``get_master_service_for_service`` fails --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 97ea689..8b270d4 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -4364,7 +4364,7 @@ if [ "$is_docker_compose_action" -a "${#services_args[@]}" -gt 0 ]; then if [ "$action" == "up" ]; then declare -A seen for service in $(get_ordered_service_dependencies "${services_args[@]}"); do - mservice=$(get_master_service_for_service "$service") + mservice=$(get_master_service_for_service "$service") || exit 1 [ "${seen[$mservice]}" ] && continue type="$(get_service_type "$mservice")" || exit 1 ## remove run-once