1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-26 23:33:03 +00:00

fix bug when create recursive config folder

This commit is contained in:
nishiki 2016-05-17 19:25:30 +02:00
parent 240af672ab
commit 53cb745eb4

View file

@ -5,6 +5,7 @@
require 'gpgme' require 'gpgme'
require 'yaml' require 'yaml'
require 'i18n' require 'i18n'
require 'fileutils'
module MPW module MPW
class Config class Config
@ -55,7 +56,7 @@ class Config
} }
} }
Dir.mkdir(wallet_dir, 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