MCPcopy
hub / github.com/electerm/electerm / isLinuxLegacy

Function isLinuxLegacy

npm/install.js:109–121  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

107}
108
109function isLinuxLegacy (platform) {
110 if (platform !== 'linux') return false
111 try {
112 const result = execSync('ldd --version 2>&1 | head -n1', { encoding: 'utf8' })
113 const match = result.match(/(\d+\.\d+)\s*$/)
114 if (match) {
115 return parseFloat(match[1]) < 2.34
116 }
117 return false
118 } catch (e) {
119 return false
120 }
121}
122
123// ---------------------------------------------------------------------------
124// Launch the extracted binary

Callers 3

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected