Permalink
Browse files

dangerous bug in the way wukong script is launched, now if streaming …

…fails the process actually raises an error and fails too (fixes scripts that depend on exit status of wukong scripts)
  • Loading branch information...
1 parent 2169379 commit d908490bab7264859783d8fd42a4709015a60fda @thedatachef thedatachef committed Apr 19, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/wukong/script.rb
View
@@ -231,6 +231,7 @@ def execute_command! *args
else
maybe_overwrite_output_paths! output_path
$stdout.puts `#{command}`
+ raise "Streaming command failed!" unless $?.success?
end
end

0 comments on commit d908490

Please sign in to comment.