Use plain Dir.chdir instead of enclosing middleman in a Dir.chdir-block.

This allows extensions, templates and monkey-patches to chdir
when needed, without triggering this ruby warning:

  warning: conflicting chdir during another chdir block
This commit is contained in:
moe 2012-07-14 14:46:46 +02:00
parent 9371eb2057
commit cf897e1e9e

View file

@ -63,9 +63,8 @@ end
# Start the CLI
if ENV["MM_ROOT"]
# Change directory to the root
Dir.chdir(ENV["MM_ROOT"]) do
Dir.chdir(ENV["MM_ROOT"])
Middleman::Cli::Base.start
end
else
Middleman::Cli::Base.start
end