lib/cocoapods-flutter/native/archive/command_runner.rb in cocoapods-flutter-dt-0.0.8 vs lib/cocoapods-flutter/native/archive/command_runner.rb in cocoapods-flutter-dt-0.0.9

- old
+ new

@@ -3,15 +3,21 @@ class CommandRunner def CommandRunner.run(*args) command = args.join ' ' Pod::UserInterface.info "Running #{command}..." - stdin, stdout, stderr, wait_thr = Open3.popen3(*args) + stdin, stdout_stderr, wait_thr = Open3.popen2e(*args) + Thread.new do + stdout_stderr.each {|l| puts l } + end + exit_status = wait_thr.value if exit_status.success? - puts stdout.gets + puts stdout_stderr.gets else - puts stderr.gets + puts stdout_stderr.gets end + stdin.close + stdout_stderr.close return exit_status.success? end end \ No newline at end of file