mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix bug share key
This commit is contained in:
parent
f251b2ebe0
commit
ec3abbe88a
1 changed files with 10 additions and 7 deletions
|
@ -94,14 +94,17 @@ cli.load_config
|
|||
|
||||
if not options[:list].nil?
|
||||
cli.list_wallet
|
||||
elsif not options[:gpg_key].nil?
|
||||
if options[:delete]
|
||||
cli.delete_key(options[:gpg_key])
|
||||
else
|
||||
cli.add_key(options[:gpg_key])
|
||||
end
|
||||
else
|
||||
cli.get_wallet(options[:wallet])
|
||||
cli.decrypt
|
||||
cli.setup_wallet_config(values)
|
||||
|
||||
if not options[:gpg_key].nil?
|
||||
if options[:delete]
|
||||
cli.delete_key(options[:gpg_key])
|
||||
else
|
||||
cli.add_key(options[:gpg_key])
|
||||
end
|
||||
else
|
||||
cli.setup_wallet_config(values)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue