lib/rake/funnel/tasks/bin_path.rb in rake-funnel-0.17.0 vs lib/rake/funnel/tasks/bin_path.rb in rake-funnel-0.18.0
- old
+ new
@@ -36,10 +36,10 @@
self
end
def paths
- @paths ||= @path_modifier.call(Dir[*search_pattern])
+ @paths ||= @path_modifier.call(Dir[*search_pattern].select { |path| File.directory?(path) })
.map { |path| File.expand_path(path) }
.sort
end
def prepend_pattern_to_path_environment(paths)