Skip to content

Commit

Permalink
Ensure config directory always exist, seems to be timing issue in rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
clee-r7 committed Jan 18, 2018
1 parent 7849743 commit 87f8b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/modules/metadata/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def configure_user_store

def get_user_store
store_dir = ::File.join(Msf::Config.config_directory, "store")
FileUtils.mkdir(store_dir) if !::File.exist?(store_dir)
FileUtils.makedirs(store_dir) if !::File.exist?(store_dir)
return ::File.join(store_dir, UserMetaDataFile)
end

Expand Down

0 comments on commit 87f8b68

Please sign in to comment.