Whoops, properly implement findup

This commit is contained in:
Ben Hollis 2014-03-04 22:43:10 -08:00
parent 220d1e8948
commit 10f8715bde

View file

@ -47,7 +47,7 @@ module Middleman
def findup(filename, cwd = Pathname.new(Dir.pwd))
return cwd.to_s if (cwd + filename).exist?
return false if cwd.root?
findup(cwd.parent)
findup(filename, cwd.parent)
end
end