1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-08-28 23:26:18 +02:00

skip generating gem file contents if this is not a git checkout

This commit is contained in:
Brent Cook 2017-05-26 10:07:49 -05:00 committed by Brent Cook
parent ab6b5f381d
commit 0f832fd4d1

View File

@ -24,9 +24,11 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://www.metasploit.com'
spec.license = 'BSD-3-clause'
spec.files = `git ls-files`.split($/).reject { |file|
file =~ /^documentation|^data\/gui|^external/
}
if File.directory?(File.join(__FILE__, ".git"))
spec.files = `git ls-files`.split($/).reject { |file|
file =~ /^documentation|^data\/gui|^external/
}
end
spec.bindir = '.'
if ENV['CREATE_BINSTUBS']
spec.executables = [