From 22397d9b36938f6537bc83293e5bee0aff403756 Mon Sep 17 00:00:00 2001 From: John Duarte Date: Tue, 27 May 2014 17:18:37 -0700 Subject: Fix logic to validate keyfile --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index b1e0e14..cb80def 100755 --- a/Rakefile +++ b/Rakefile @@ -72,7 +72,7 @@ end def check_args_for_keyfile(extra_args) keyfile = '' extra_args.each do |a| - keyfile = a if (`file -b #{a}`.gsub(/\n/,"").match(/ key/)) + keyfile = a unless (`ssh-keygen -l -f #{a}`.gsub(/\n/,"").match(/is not a .*key file/)) end return keyfile end -- cgit v1.2.3