1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 13:57:52 +00:00

no error after config

This commit is contained in:
nishiki 2016-07-06 21:40:51 +02:00
parent 4502c43424
commit 8bfcb29bdf

View file

@ -147,11 +147,13 @@ begin
cli = MPW::Cli.new(config, options[:sync])
# Setup a new config
if not config.is_valid? or not options[:setup].nil?
if not options[:setup].nil?
cli.setup(lang)
elsif not config.check_gpg_key?
cli.setup_gpg_key
exit 0
end
cli.setup(lang) if not config.is_valid?
cli.setup_gpg_key if not config.check_gpg_key?
cli.get_wallet(options[:wallet])
cli.decrypt