1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 10:43:20 +00:00

fix create config folder

This commit is contained in:
Adrien Waksberg 2016-11-06 10:30:37 +01:00
parent 0e86be5461
commit 0c93fd9eea

View file

@ -71,7 +71,9 @@ class Config
'gpg_exe' => gpg_exe, 'gpg_exe' => gpg_exe,
} }
FileUtils.mkdir_p(wallet_dir, mode: 0700) FileUtils.mkdir_p(@config_dir, mode: 0700)
FileUtils.mkdir_p(wallet_dir, mode: 0700)
File.open(@config_file, 'w') do |file| File.open(@config_file, 'w') do |file|
file << config.to_yaml file << config.to_yaml
end end