lib/buildbox/runner.rb in buildbox-0.2.3 vs lib/buildbox/runner.rb in buildbox-0.3
- old
+ new
@@ -21,11 +21,11 @@
File.chmod(0777, script_path)
info "Running script: #{script_path}"
build.output = ""
- result = Command.script(script_path, :environment => @build.env,
- :directory => directory_path) do |chunk|
+ result = Command.run(script_path, :environment => @build.env,
+ :directory => directory_path) do |chunk|
build.output << chunk
end
build.output = result.output
build.exit_status = result.exit_status