gitlab-org--gitlab-foss/scripts/no-ee-check
Dmitriy Zaporozhets 470f55351b
Add check for top-level ee directory in CE repo
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-05-21 14:52:45 +03:00

8 lines
237 B
Ruby
Executable file

#!/usr/bin/env ruby
ee_path = File.join(File.expand_path(File.dirname(__FILE__)), '../ee')
result = Dir.exist?(ee_path)
if result
puts 'The repository contains /ee directory. There should be no /ee directory in CE repo.'
exit 1
end