Check whether a Pathname exists before calling realpath in build. Closes #569
This commit is contained in:
parent
5a88184769
commit
f7fc041034
1 changed files with 4 additions and 1 deletions
|
@ -259,7 +259,10 @@ module Middleman::Cli
|
|||
|
||||
output_path = base.render_to_file(resource)
|
||||
|
||||
@cleaning_queue.delete(Pathname.new(output_path).realpath) if cleaning?
|
||||
if cleaning?
|
||||
pn = Pathname(output_path)
|
||||
@cleaning_queue.delete(pn.realpath) if pn.exist?
|
||||
end
|
||||
end
|
||||
|
||||
::Middleman::Profiling.report("build")
|
||||
|
|
Loading…
Reference in a new issue