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