lib/nanoc/cli/command_runner.rb in nanoc-4.9.4 vs lib/nanoc/cli/command_runner.rb in nanoc-4.9.5

- old
+ new

@@ -26,10 +26,11 @@ here = start_here until Nanoc::Int::SiteLoader.cwd_is_nanoc_site? Dir.chdir('..') return nil if Dir.pwd == here + here = Dir.pwd end here ensure Dir.chdir(start_here) @@ -40,9 +41,10 @@ if dir.nil? raise ::Nanoc::Int::Errors::GenericTrivial, 'The current working directory, nor any of its parents, seems to be a Nanoc site.' end return if Dir.getwd == dir + $stderr.puts "Using Nanoc site in #{dir}" Dir.chdir(dir) end # Asserts that the current working directory contains a site and loads the site into memory.