exclude destination from auto watch folders #675

Closed
wants to merge 1 commit into
from
Jump to file
+1 −1
Split
View
@@ -228,7 +228,7 @@ destination = options['destination']
def globs(source)
Dir.chdir(source) do
dirs = Dir['*'].select { |x| File.directory?(x) }
- dirs -= ['_site']
+ dirs -= ['_site', destination]
dirs = dirs.map { |x| "#{x}/**/*" }
dirs += ['*']
end