From 9dbc151f78e6575139b71311e79ae157e6223108 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 15 Feb 2024 14:38:15 +0100 Subject: [PATCH] fix: dev: [compose-core] declare all local variables in ``get_relation_data_file()`` --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 9218f7c..46c2b91 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3053,7 +3053,8 @@ export -f get_relation_data_dir get_relation_data_file() { - local service="$1" target_service="$2" relation_name="$3" relation_config="$4" + local service="$1" target_service="$2" relation_name="$3" relation_config="$4" \ + new new_md5 relation_dir relation_data_file relation_dir=$(get_relation_data_dir "$service" "$target_service" "$relation_name") || return 1 relation_data_file="$relation_dir/data"