From e2da0282ec306ba7302f1dec7bec46c977072391 Mon Sep 17 00:00:00 2001 From: sHa Date: Sat, 27 Sep 2025 00:59:25 +0300 Subject: [PATCH] Fix Docker template syntax in volume commands - Escape {{.Name}} as {{{{.Name}}}} to avoid Just variable interpolation conflicts - Fixes syntax errors in volumes-remove and volumes-remove-pattern commands --- volumes.just | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volumes.just b/volumes.just index f2d07b5..28c011e 100644 --- a/volumes.just +++ b/volumes.just @@ -55,7 +55,7 @@ volumes-remove volume_name: runtime=$(just _detect_runtime) # Check if volume exists - if ! $runtime volume ls --format "table {{.Name}}" | grep -q "^${volume_name}$"; then + if ! $runtime volume ls --format "table {{{{.Name}}}}" | grep -q "^${volume_name}$"; then echo -e "{{YELLOW}}Volume '$volume_name' does not exist{{NC}}" exit 0 fi @@ -91,7 +91,7 @@ volumes-remove-pattern pattern: runtime=$(just _detect_runtime) # Find matching volumes - matching_volumes=$($runtime volume ls --format "table {{.Name}}" | grep "$pattern" || true) + matching_volumes=$($runtime volume ls --format "table {{{{.Name}}}}" | grep "$pattern" || true) if [ -z "$matching_volumes" ]; then echo -e "{{YELLOW}}No volumes found matching pattern: $pattern{{NC}}"