Commit 879657eb authored by JeremyWuuuuu's avatar JeremyWuuuuu

Fix: enhance is_jh judgment condition

- Add condition for `EE_ONLY` to make the judgment aligned with gitlab.rb
parent dd475625
...@@ -12,4 +12,5 @@ const ROOT_PATH = path.resolve(__dirname, '../..'); ...@@ -12,4 +12,5 @@ const ROOT_PATH = path.resolve(__dirname, '../..');
// lib/gitlab.rb: Gitlab.jh? // lib/gitlab.rb: Gitlab.jh?
// Since IS_EE already satisifies the conditions of not being a FOSS_ONLY. // Since IS_EE already satisifies the conditions of not being a FOSS_ONLY.
// const isFossOnly = JSON.parse(process.env.FOSS_ONLY || 'false'); // const isFossOnly = JSON.parse(process.env.FOSS_ONLY || 'false');
module.exports = IS_EE && fs.existsSync(path.join(ROOT_PATH, 'jh')); const isEEOnly = JSON.parse(process.env.EE_ONLY || 'false');
module.exports = IS_EE && !isEEOnly && fs.existsSync(path.join(ROOT_PATH, 'jh'));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment