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