summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/no-ee-check5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/no-ee-check b/scripts/no-ee-check
index bd53de5a949..29d319dc822 100755
--- a/scripts/no-ee-check
+++ b/scripts/no-ee-check
@@ -1,8 +1,7 @@
#!/usr/bin/env ruby
-ee_path = File.join(File.expand_path(File.dirname(__FILE__)), '../ee')
-result = Dir.exist?(ee_path)
+ee_path = File.join(File.expand_path(__dir__), '../ee')
-if result
+if Dir.exist?(ee_path)
puts 'The repository contains /ee directory. There should be no /ee directory in CE repo.'
exit 1
end