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:
parent
240af672ab
commit
53cb745eb4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue