Changed method of stopping deprecation warnings to use $VERBOSE = nil

This commit is contained in:
Wade Alcorn
2012-01-17 11:48:07 +10:00
parent 17f906c7da
commit c4f0b04389

5
beef
View File

@@ -1,4 +1,4 @@
#!/usr/bin/env ruby -W0
#!/usr/bin/env ruby
#
# Copyright 2012 Wade Alcorn wade@bindshell.net
@@ -16,6 +16,9 @@
# limitations under the License.
#
# stop deprecation warning from being displayed
$VERBOSE = nil
# @note Version check to ensure BeEF is running Ruby 1.9 >
if RUBY_VERSION < '1.9'
puts "\n"