Skip to content

Commit 3731ca8

Browse files
committed
fix: cicd env won't show permission warn
Signed-off-by: zxypro1 <1018995004@qq.com>
1 parent 9ede770 commit 3731ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const preRun = () => {
1616
// 初始化日志
1717
logger.initialization();
1818
// 不推荐使用管理员权限
19-
if (process.getuid && process.getuid() === 0) {
19+
if (process.getuid && process.getuid() === 0 && !utils.isCiCdEnvironment()) {
2020
logger.warn('It is not recommended to run the command as root user.');
2121
}
2222
// 检查node版本是否过低

0 commit comments

Comments
 (0)