From e7dc5c1e1c37d1e4036c9e427a86c49ce13aeee2 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 4 Dec 2024 16:34:44 +0100 Subject: [PATCH] new: [compose-core] make detection of cached image work with correct syntax --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 841dfa3..e1ca6e5 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -1812,7 +1812,7 @@ service_ensure_image_ready() { local service_quoted=${service//./\\.} if specified_image=$(echo "$service_def" | shyaml get-value image 2>/dev/null); then - if [ "$specified_image" == "$charm_image_name"* ]; then + if [[ "$specified_image" == "$charm_image_name"* ]]; then ## Assume we already did the change printf "%s" "$specified_image" | tee "$cache_file" return 0