From 8bfcb29bdf817154d9413b871970c5facebff031 Mon Sep 17 00:00:00 2001 From: nishiki Date: Wed, 6 Jul 2016 21:40:51 +0200 Subject: [PATCH] no error after config --- bin/mpw | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/mpw b/bin/mpw index 8e72668..ce73305 100755 --- a/bin/mpw +++ b/bin/mpw @@ -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