Skip to content

Commit 48ef354

Browse files
committed
暂时先屏蔽掉非 linux 系统
1 parent 00dba2c commit 48ef354

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

get_process_env.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ if (!pid) {
1313
process.exit(1);
1414
}
1515

16+
if (require('os').type() !== 'Linux') {
17+
console.log('Not support non-linux');
18+
process.exit(1);
19+
}
20+
1621
function getAlinodeVersion(pid) {
1722
const output = execSync(`ls -l /proc/${pid}/exe`, {
1823
encoding: 'utf8'

0 commit comments

Comments
 (0)