From afa6898a82b374dfd1e9b07edea6ca9d0b4b5863 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Sep 2024 07:58:38 -0700 Subject: [PATCH] Fix pipe --- lib/kamal/commands/proxy.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/kamal/commands/proxy.rb b/lib/kamal/commands/proxy.rb index 90d03141..9b145d2d 100644 --- a/lib/kamal/commands/proxy.rb +++ b/lib/kamal/commands/proxy.rb @@ -43,9 +43,7 @@ class Kamal::Commands::Proxy < Kamal::Commands::Base def follow_logs(host:, timestamps: true, grep: nil, grep_options: nil) run_over_ssh pipe( - docker(:logs, container_name), - ("--timestamps" if timestamps), - "--tail", "10", "--follow", "2>&1"), + docker(:logs, container_name, ("--timestamps" if timestamps), "--tail", "10", "--follow", "2>&1"), (%(grep "#{grep}"#{" #{grep_options}" if grep_options}) if grep) ).join(" "), host: host end