summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile2
1 files changed, 1 insertions, 1 deletions
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