1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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)) def findup(filename, cwd = Pathname.new(Dir.pwd))
return cwd.to_s if (cwd + filename).exist? return cwd.to_s if (cwd + filename).exist?
return false if cwd.root? return false if cwd.root?
findup(cwd.parent) findup(filename, cwd.parent)
end end
end end