lib/nanoc/cli/commands/create-site.rb in nanoc-4.7.5 vs lib/nanoc/cli/commands/create-site.rb in nanoc-4.7.6
- old
+ new
@@ -298,10 +298,10 @@
raise Nanoc::Int::Errors::GenericTrivial, "usage: #{command.usage}"
end
path = arguments[0]
# Check whether site exists
- if File.exist?(path) && (!File.directory?(path) || !(Dir.entries(path) - %w(. ..)).empty?) && !options[:force]
+ if File.exist?(path) && (!File.directory?(path) || !(Dir.entries(path) - %w[. ..]).empty?) && !options[:force]
raise(
Nanoc::Int::Errors::GenericTrivial,
"The site was not created because '#{path}' already exists. " \
'Re-run the command using --force to create the site anyway.',
)