check double quotes

This commit is contained in:
Christian Mehlmauer 2018-08-29 06:49:37 +02:00
parent 31d4d4f5ff
commit 69d321000e
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ if __FILE__ == $PROGRAM_NAME
msftidy = Msftidy.new(full_filepath)
# Executable files are now assumed to be external modules
# but also check for some content to be sure
next if File.executable?(full_filepath) && msftidy.source.include?("require 'metasploit'")
next if File.executable?(full_filepath) && msftidy.source =~ /require ["']metasploit["']/
msftidy.run_checks
@exit_status = msftidy.status if (msftidy.status > @exit_status.to_i)
end