From 2e9d1613fcf6409d99e364c447baa7fccfed4407 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 17 Dec 2018 14:56:51 +0100 Subject: [PATCH] fix: dev: be sure to catch error. --- bin/compose-core | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index bcf0d8c..a520650 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3912,8 +3912,8 @@ if [ "$full_init" ]; then ## Get relations if [ -z "$no_relations" ]; then if [ "${#rebuild_relations_to_service[@]}" != 0 ]; then - rebuild_relations_to_service=( - $(get_master_services "${rebuild_relations_to_service[@]}")) + rebuild_relations_to_service=$(get_master_services "${rebuild_relations_to_service[@]}") || return 1 + rebuild_relations_to_service=($rebuild_relations_to_service) project=$(get_default_project_name) || return 1 for service in "${rebuild_relations_to_service[@]}"; do for dir in "$VARDIR/relations/$project/"*"-${service}/"*; do