Merge pull request #531 from m-o-e/chdir_fix

Use plain Dir.chdir instead of enclosing middleman in a Dir.chdir-block.
This commit is contained in:
Thomas Reynolds 2012-07-14 11:28:34 -07:00
commit e59241c036

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
Middleman::Cli::Base.start
end
Dir.chdir(ENV["MM_ROOT"])
Middleman::Cli::Base.start
else
Middleman::Cli::Base.start
end
end