Skip to content

Commit

Permalink
Fix #46: create data dir if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnventura committed Oct 12, 2015
1 parent ab89a2c commit d878fbb
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 d878fbb

Please sign in to comment.