From 8719bfbe276aa066886fbe4f2de3680c8750faf9 Mon Sep 17 00:00:00 2001 From: Matan Horovitz Date: Fri, 18 Nov 2022 15:16:30 +0200 Subject: [PATCH] Small service names fix --- HatarashiHako | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HatarashiHako b/HatarashiHako index d866ec4..dfc808d 100755 --- a/HatarashiHako +++ b/HatarashiHako @@ -136,8 +136,9 @@ for container_path in ${CONTAINER_PATHS[@]}; do ok "$container_name" "is up to date!" else warn "$container_name" "is out of date!" - service=$(cat "$container_path/docker-compose.yml" | grep -B1 "$container_image" | head -1 | sed -e 's/^[ \t]*//' -e 's/://g') - info "Attempting to update" "$container_name" + debug "cat \"$container_path/docker-compose.yml\" | grep -B1 "image: $container_image" | head -1 | sed -e 's/^[ \t]*//' -e 's/://g'" + service=$(cat "$container_path/docker-compose.yml" | grep -B1 "image: $container_image" | head -1 | sed -e 's/^[ \t]*//' -e 's/://g') + info "Attempting to update service" "$service" if docker-compose pull $service; then info "Pulled latest image for" "$container_name" if docker-compose up -d --remove-orphans; then