atcheck/lsscanner/new_ubuntu/node_modules/detect-libc/bin/detect-libc.js

19 lines
371 B
JavaScript
Raw Permalink Normal View History

2019-12-16 18:42:21 +01:00
#!/usr/bin/env node
'use strict';
var spawnSync = require('child_process').spawnSync;
var libc = require('../');
var spawnOptions = {
env: process.env,
shell: true,
stdio: 'inherit'
};
if (libc.isNonGlibcLinux) {
spawnOptions.env.LIBC = process.env.LIBC || libc.family;
}
process.exit(spawnSync(process.argv[2], process.argv.slice(3), spawnOptions).status);