mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-17 08:30:04 +00:00
no error after config
This commit is contained in:
parent
4502c43424
commit
8bfcb29bdf
1 changed files with 5 additions and 3 deletions
8
bin/mpw
8
bin/mpw
|
@ -147,11 +147,13 @@ begin
|
||||||
cli = MPW::Cli.new(config, options[:sync])
|
cli = MPW::Cli.new(config, options[:sync])
|
||||||
|
|
||||||
# Setup a new config
|
# Setup a new config
|
||||||
if not config.is_valid? or not options[:setup].nil?
|
if not options[:setup].nil?
|
||||||
cli.setup(lang)
|
cli.setup(lang)
|
||||||
elsif not config.check_gpg_key?
|
exit 0
|
||||||
cli.setup_gpg_key
|
|
||||||
end
|
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.get_wallet(options[:wallet])
|
||||||
cli.decrypt
|
cli.decrypt
|
||||||
|
|
Loading…
Add table
Reference in a new issue