File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 4
4
# we must manually define the project root
5
5
if ENV [ 'MSF_ROOT' ]
6
6
lib = File . realpath ( File . expand_path ( 'lib' , ENV [ 'MSF_ROOT' ] ) )
7
+ files = `git ls-files` . split ( $/) . reject { |file |
8
+ file =~ /^documentation|^data\/ gui|^external/
9
+ }
7
10
else
8
- # have to use realpath as metasploit-framework is often loaded through a symlink and tools like Coverage and debuggers
9
- # require realpaths.
11
+ # have to use realpath as metasploit-framework is often loaded through a
12
+ # symlink and tools like Coverage and debuggers require realpaths.
10
13
lib = File . realpath ( File . expand_path ( '../lib' , __FILE__ ) )
14
+ files = [ ]
11
15
end
12
16
13
17
$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
@@ -24,10 +28,8 @@ Gem::Specification.new do |spec|
24
28
spec . homepage = 'https://www.metasploit.com'
25
29
spec . license = 'BSD-3-clause'
26
30
27
- spec . files = `git ls-files` . split ( $/) . reject { |file |
28
- file =~ /^documentation|^data\/ gui|^external/
29
- }
30
- spec . bindir = '.'
31
+ spec . files = files
32
+ spec . bindir = '.'
31
33
if ENV [ 'CREATE_BINSTUBS' ]
32
34
spec . executables = [
33
35
'msfconsole' ,
You can’t perform that action at this time.
0 commit comments