Skip to content

Commit

Permalink
Prints stdout on Command
Browse files Browse the repository at this point in the history
  • Loading branch information
JDurstberger committed Feb 9, 2024
1 parent 618d11d commit d9f059d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ require 'open3'
module Command
class << self
def run(command, environment = {})
stdout_str, status = Open3.capture2(environment.transform_keys(&:to_s), command)
out, status = Open3.capture2e(environment.transform_keys(&:to_s), command)
unless status.success?
raise("Failed to run:\n #{command}")
end
stdout_str
out
end
end
end
Expand Down

0 comments on commit d9f059d

Please sign in to comment.