check ldd stderr instead of stdout
This commit is contained in:
parent
d9d1fe0c5a
commit
d782e49d4e
@ -36,7 +36,7 @@ function detectAlpine () {
|
||||
const { platform } = process;
|
||||
if (platform !== 'linux') return false;
|
||||
// https://github.com/sass/node-sass/issues/1589#issuecomment-265292579
|
||||
const ldd = spawnSync('ldd').stdout.toString();
|
||||
const ldd = spawnSync('ldd').stderr.toString();
|
||||
if (/\bmusl\b/.test(ldd)) return true;
|
||||
const lddNode = spawnSync('ldd', [ process.execPath ]).stdout.toString();
|
||||
return /\bmusl\b/.test(lddNode);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pkg-fetch",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"description": "Compiles and stores base binaries for pkg",
|
||||
"main": "lib-es5/index.js",
|
||||
"license": "MIT",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user