lib/thinking_sphinx/commands/start_attached.rb in thinking-sphinx-4.2.0 vs lib/thinking_sphinx/commands/start_attached.rb in thinking-sphinx-4.3.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
class ThinkingSphinx::Commands::StartAttached < ThinkingSphinx::Commands::Base
def call
- FileUtils.mkdir_p configuration.indices_location
+ FileUtils.mkdir_p configuration.indices_location unless skip_directories?
unless pid = fork
controller.start :verbose => options[:verbose], :nodetach => true
end