Skip to content

Commit

Permalink
Merge pull request #78 from jcnventura/data_dir
Browse files Browse the repository at this point in the history
Fix #46: create data dir if it does not exist.
  • Loading branch information
lauriii committed Oct 13, 2015
2 parents ab89a2c + d878fbb commit d1f4297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/bin/companies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
UPDATE_ALL=2

name_variants = Hash.new(0)
Dir.mkdir('../data') unless Dir.exist?('../data')
if File.exists? ('../data/company_infos.yml')
companies_info = YAML::load_file('../data/company_infos.yml')
else
Expand Down

0 comments on commit d1f4297

Please sign in to comment.