mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
not use pinmode if gpg version < 2.1
This commit is contained in:
parent
7ce4ba721b
commit
d8df357993
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ module MPW
|
|||
return nil if data.to_s.empty?
|
||||
|
||||
password =
|
||||
if /^1\.[0-9.]+$/ =~ GPGME::Engine.info.first.version || @pinmode
|
||||
if /^(1\.[0-9.]+|2\.0)(\.[0-9]+)?/ =~ GPGME::Engine.info.first.version || @pinmode
|
||||
{ password: @gpg_pass }
|
||||
else
|
||||
{ password: @gpg_pass,
|
||||
|
|
Loading…
Add table
Reference in a new issue