1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

fix bug when gpg path is empty

This commit is contained in:
Adrien Waksberg 2016-10-25 23:17:04 +02:00
parent c25b312013
commit 94f6e4e61e

View file

@ -33,7 +33,7 @@ class MPW
@gpg_exe = gpg_exe
@wallet_file = wallet_file
if @gpg_exe
if not @gpg_exe.to_s.empty?
GPGME::Engine.set_info(GPGME::PROTOCOL_OpenPGP, @gpg_exe, "#{Dir.home}/.gnupg")
end
end