Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Disable gem update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius committed May 12, 2017
1 parent c56c8cb commit a858483
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions bin/ssh_scan
Original file line number Diff line number Diff line change
Expand Up @@ -226,25 +226,25 @@ unless File.exist?(options["policy"])
end

# Check to see if we're running the latest released version
if !options["suppress_update_status"]
update = SSHScan::Update.new
if update.newer_gem_available?
options["logger"].warn(
"You're NOT using the latest version of ssh_scan, try 'gem update \
ssh_scan' to get the latest"
)
else
if update.errors.any?
update.errors.each do |error|
options["logger"].error(error)
end
else
options["logger"].info(
"You're using the latest version of ssh_scan #{SSHScan::VERSION}"
)
end
end
end
#if !options["suppress_update_status"]
# update = SSHScan::Update.new
# if update.newer_gem_available?
# options["logger"].warn(
# "You're NOT using the latest version of ssh_scan, try 'gem update \
#ssh_scan' to get the latest"
# )
# else
# if update.errors.any?
# update.errors.each do |error|
# options["logger"].error(error)
# end
# else
# options["logger"].info(
# "You're using the latest version of ssh_scan #{SSHScan::VERSION}"
# )
# end
# end
#end

# Limit scope of fingerprints DB to (per scan)
if options["fingerprint_database"] && File.exists?(options["fingerprint_database"])
Expand Down

0 comments on commit a858483

Please sign in to comment.