Skip to content
代码片段 群组 项目
提交 879657eb 编辑于 作者: JeremyWuuuuu's avatar JeremyWuuuuu
浏览文件

Fix: enhance is_jh judgment condition

- Add condition for `EE_ONLY` to make the judgment aligned with gitlab.rb
上级 dd475625
No related branches found
No related tags found
无相关合并请求
...@@ -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'));
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册