1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 05:47:53 +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 'yaml'
require 'i18n'
require 'fileutils'
module MPW
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 << config.to_yaml
end