MCPcopy
hub / github.com/claude-code-best/claude-code / detectMusl

Function detectMusl

scripts/postinstall.cjs:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84function detectMusl() {
85 const muslArch = process.arch === 'x64' ? 'x86_64' : 'aarch64'
86 try {
87 statSync(`/lib/libc.musl-${muslArch}.so.1`)
88 return true
89 } catch {
90 return false
91 }
92}
93
94// --- Paths ---
95

Callers 1

getPlatformMappingFunction · 0.85

Calls 1

statSyncFunction · 0.85

Tested by

no test coverage detected