don't add Msf prefix if it's already there, i.e. we already fixed this file
git-svn-id: file:///home/svn/framework3/trunk@5743 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
a7a7da9e28
commit
770ed0286c
|
@ -12,7 +12,11 @@ data.each_line do |line|
|
|||
end
|
||||
|
||||
if(line =~ /^(\s*)include (.*)/)
|
||||
line = "#{$1}include Msf::#{$2.strip}\n"
|
||||
spaces = $1
|
||||
inc = $2
|
||||
if (inc !~ /Msf/)
|
||||
line = "#{spaces}include Msf::#{inc.strip}\n"
|
||||
end
|
||||
end
|
||||
|
||||
if(line =~ /^(\s*)class ([^\<]+)\s*<\s*(.*)/)
|
||||
|
|
Loading…
Reference in New Issue