Skip to content

Commit

Permalink
removing shellescape, as it's also not supported on Windows, still ne…
Browse files Browse the repository at this point in the history
…ed to check tests
  • Loading branch information
Kevin committed Jan 11, 2025
1 parent 2d623df commit 659670d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kamal/secrets/adapters/bitwarden.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 659670d

Please sign in to comment.