Whoops, properly implement findup
This commit is contained in:
parent
220d1e8948
commit
10f8715bde
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue