Permalink
Browse files

wukong script run in local mode should check if input is a directory

  • Loading branch information...
1 parent 1b9596d commit 6b617376214b7519887d1290ba597a65285ac88d @thedatachef committed Mar 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/swineherd/script/wukong_script.rb
@@ -21,7 +21,7 @@ def cmd
end
def local_cmd
- inputs = input.map{|path| path += "/*"}.join(',')
+ inputs = input.map{|path| path += File.directory?(path) ? "/*" : ""}.join(',')
"ruby #{script} #{wukong_args(@options)} --run=local #{inputs} #{output.join(',')}"
end

0 comments on commit 6b61737

Please sign in to comment.