diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-21 18:12:18 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-22 18:35:51 +0300 |
commit | fba580e37fce90060e5a208c36779a6a2adc3a78 (patch) | |
tree | 353cd639d91911ff798e1aafc845aa9c5b82cbc4 | |
parent | 470f55351bfac96a1a17b36c026caec980a31c96 (diff) |
Update no-ee-check with rubocop recommendation.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rwxr-xr-x | scripts/no-ee-check | 5 |
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 |