mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-02 07:40:19 +02:00
silence warnings for all users
This commit is contained in:
parent
eaa9904676
commit
b05d01f39b
@ -8,7 +8,8 @@
|
||||
require 'pathname'
|
||||
|
||||
begin
|
||||
# TODO: Temporary until warnings can be turned on only for developers to prevent confusion for end users
|
||||
|
||||
# Silences warnings as they only serve to confuse end users
|
||||
if defined?(Warning) && Warning.respond_to?(:[]=)
|
||||
Warning[:deprecated] = false
|
||||
end
|
||||
|
5
msfvenom
5
msfvenom
@ -8,6 +8,11 @@ class UsageError < MsfVenomError; end
|
||||
require 'optparse'
|
||||
require 'timeout'
|
||||
|
||||
# Silences warnings as they only serve to confuse end users
|
||||
if defined?(Warning) && Warning.respond_to?(:[]=)
|
||||
Warning[:deprecated] = false
|
||||
end
|
||||
|
||||
msfbase = __FILE__
|
||||
while File.symlink?(msfbase)
|
||||
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
||||
|
Loading…
Reference in New Issue
Block a user