mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
An attempt to fix #1402
This commit is contained in:
parent
91d0d39569
commit
be98103e05
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ module Middleman
|
|||
end
|
||||
|
||||
# Recursive method to find a file in parent directories
|
||||
def findup(filename, cwd=Pathname.new(Dir.pwd))
|
||||
def findup(filename, cwd=Dir.pwd)
|
||||
cwd = Pathname(cwd)
|
||||
return cwd.to_s if (cwd + filename).exist?
|
||||
return false if cwd.root?
|
||||
findup(filename, cwd.parent)
|
||||
|
|
Loading…
Reference in a new issue