Fix gpgpcli.py --{adm,user}-pin

When pinpad is not set, then both admin/user PINs must be set
on the command-line. However this condition was not properly
checked, meaning it was impossible to use both options at the
same time.
This commit is contained in:
Charly Chevalier 2019-12-11 13:57:51 +01:00
parent f7fff68d32
commit 6970362efa

View File

@ -67,7 +67,7 @@ if args.backup and args.restore:
if not args.pinpad:
if not args.adm_pin is None or not args.user_pin:
if not args.adm_pin or not args.user_pin:
error('If pinpad is not use, userpin and admpin must be provided')