Skip to content

Commit c621ac0

Browse files
committed
Still need to exclude . and ..
1 parent a0361bb commit c621ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_events_catalog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def configure
2828
end
2929

3030
def read_domains
31-
Dir.entries(SOURCE_PATH).select { |entry| File.directory?("#{SOURCE_PATH}#{entry}") }
31+
Dir.entries(SOURCE_PATH).select { |entry| File.directory?("#{SOURCE_PATH}#{entry}") and !(entry == '.' || entry == '..') }
3232
end
3333

3434
def source_domain_directory(domain)

0 commit comments

Comments
 (0)