Check whether a Pathname exists before calling realpath in build. Closes #569

This commit is contained in:
Thomas Reynolds 2012-08-20 19:28:43 -07:00
parent 5a88184769
commit f7fc041034

View file

@ -259,7 +259,10 @@ module Middleman::Cli
output_path = base.render_to_file(resource) 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 end
::Middleman::Profiling.report("build") ::Middleman::Profiling.report("build")