We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6b5f3 commit 0f832fdCopy full SHA for 0f832fd
metasploit-framework.gemspec
@@ -24,9 +24,11 @@ Gem::Specification.new do |spec|
24
spec.homepage = 'https://www.metasploit.com'
25
spec.license = 'BSD-3-clause'
26
27
- spec.files = `git ls-files`.split($/).reject { |file|
28
- file =~ /^documentation|^data\/gui|^external/
29
- }
+ if File.directory?(File.join(__FILE__, ".git"))
+ spec.files = `git ls-files`.split($/).reject { |file|
+ file =~ /^documentation|^data\/gui|^external/
30
+ }
31
+ end
32
spec.bindir = '.'
33
if ENV['CREATE_BINSTUBS']
34
spec.executables = [
0 commit comments