Skip to content

Commit 5bfec01

Browse files
committed
Fix blocking file
1 parent 85347ac commit 5bfec01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tasks/ecds_index.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace :ecds_index do
8282
task update_all: :environment do
8383
return if File.exist?('index_updating')
8484

85-
File.open('index_updating')
85+
File.open('index_updating', 'w') {}
8686
begin
8787
mappings = File.read(File.join(Rails.root, 'app', 'lib', 'ecds', 'mappings.json'))
8888
collections = JSON.parse(mappings, symbolize_names: true)

0 commit comments

Comments
 (0)