From 2bffc3bc74417bf80b162a21c68f0827f5b36680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Fri, 1 Mar 2024 09:54:06 +0100 Subject: [PATCH] Replace \`service\` by 'service' so it doesn't get executed by bash Fixes #694 --- lib/kamal/commands/builder/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/commands/builder/base.rb b/lib/kamal/commands/builder/base.rb index 8723fa45..787ea6f3 100644 --- a/lib/kamal/commands/builder/base.rb +++ b/lib/kamal/commands/builder/base.rb @@ -24,7 +24,7 @@ class Kamal::Commands::Builder::Base < Kamal::Commands::Base def validate_image pipe \ docker(:inspect, "-f", "'{{ .Config.Labels.service }}'", config.absolute_image), - [:grep, "-x", config.service, "||", "(echo \"Image #{config.absolute_image} is missing the `service` label\" && exit 1)"] + [:grep, "-x", config.service, "||", "(echo \"Image #{config.absolute_image} is missing the 'service' label\" && exit 1)"] end