commit 1181fc0a8163b9361efeafa13f840a8ca030dccc
parent 448dc08d269f9418938d55f8a08723691946c622
Author: Hamish Downer <dmishd@gmail.com>
Date: Thu, 10 Feb 2011 23:19:29 +0000
fixed type in gpg checking code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
@@ -71,7 +71,7 @@ EOS
# if it doesn't then check if gpg agent is present
gpg_opts = HookManager.run("gpg-options",
{:operation => "sign", :options => {}}) || {}
- if gpg_opts[:passphrase_callback.nil?
+ if gpg_opts[:passphrase_callback].nil?
if ENV['GPG_AGENT_INFO'].nil?
@not_working_reason = ["Environment variable 'GPG_AGENT_INFO' not set, is gpg-agent running?",
"If gpg-agent is running, try $ export `cat ~/.gpg-agent-info`"]