Skip to content

Commit

Permalink
fix(cli): template to works with nix (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Dec 15, 2022
1 parent 5e9a9ff commit 36a897e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/js-binding-template.ts
Expand Up @@ -14,7 +14,8 @@ function isMusl() {
// For Node 10
if (!process.report || typeof process.report.getReport !== 'function') {
try {
return readFileSync('/usr/bin/ldd', 'utf8').includes('musl')
const lddPath = require('child_process').execSync('which ldd').toString().trim();
return readFileSync(lddPath, 'utf8').includes('musl')
} catch (e) {
return true
}
Expand Down

0 comments on commit 36a897e

Please sign in to comment.