Skip to content

Commit

Permalink
Fixed where dry run would still overwrite output path
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Knutson committed Apr 12, 2010
1 parent 2698baa commit 464bc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wukong/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ def ruby_interpreter_path
def exec_hadoop_streaming
$stderr.puts "Streaming on self"
input_path, output_path = input_output_paths
maybe_overwrite_output_paths! output_path
command = runner_command(input_path, output_path)
$stderr.puts command
unless options[:dry_run]
maybe_overwrite_output_paths! output_path
$stdout.puts `#{command}`
end
end
Expand Down

0 comments on commit 464bc96

Please sign in to comment.