check ldd stderr instead of stdout

This commit is contained in:
Josh Junon 2017-11-09 06:13:34 -08:00
parent d9d1fe0c5a
commit d782e49d4e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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",