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:
commit
e59241c036
|
@ -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
|
Loading…
Reference in a new issue