From 659670d19c76b72443e4e479a41b6c9ef48a1173 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 10 Jan 2025 20:30:55 -0500 Subject: [PATCH] removing shellescape, as it's also not supported on Windows, still need to check tests --- lib/kamal/secrets/adapters/bitwarden.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kamal/secrets/adapters/bitwarden.rb b/lib/kamal/secrets/adapters/bitwarden.rb index 03a51f3f3..511871171 100644 --- a/lib/kamal/secrets/adapters/bitwarden.rb +++ b/lib/kamal/secrets/adapters/bitwarden.rb @@ -65,7 +65,8 @@ def signedin?(account) end def run_command(command, session: nil, raw: false) - full_command = [ *("BW_SESSION=#{session.shellescape}" if session), "bw", command ].join(" ") + system("BW_SESSION=", session) if session + full_command = [ "bw", command ].join(" ") result = `#{full_command}`.strip raw ? result : JSON.parse(result) end