未验证 提交 b2b488fa 编写于 作者: R Rachel Macfarlane 提交者: GitHub

Only write config file during postinstall if process env variables are present (#91793)

上级 a8c3c475
......@@ -20,7 +20,9 @@ function main() {
}
}
fs.writeFileSync(path.join(__dirname, '../src/common/config.json'), JSON.stringify(content));
if (Object.keys(content).length > 0) {
fs.writeFileSync(path.join(__dirname, '../src/common/config.json'), JSON.stringify(content));
}
}
main();
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册