Fix escaping

This commit is contained in:
David Heinemeier Hansson
2023-02-03 14:07:20 +01:00
parent 2023c377ab
commit 25e52d6c93

View File

@@ -8,7 +8,7 @@ module Mrsk::Commands::Concerns
# FIXME: Find more graceful way to extract the version from "app-version" than using sed and tail!
pipe \
docker(:ps, "--filter", "label=service=#{config.service}", "--format", '"{{.Names}}"'),
"sed 's/-/\n/g'",
%(sed 's/-/\\n/g'),
"tail -n 1"
end