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:
parent
9371eb2057
commit
cf897e1e9e
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue