From fba580e37fce90060e5a208c36779a6a2adc3a78 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 21 May 2018 15:12:18 +0000 Subject: Update no-ee-check with rubocop recommendation. Signed-off-by: Dmitriy Zaporozhets --- scripts/no-ee-check | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/no-ee-check') 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 -- cgit v1.2.1