MCPcopy Create free account
hub / github.com/anomalyco/opencode / verifyBinary

Function verifyBinary

packages/opencode/script/postinstall.mjs:158–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156}
157
158function verifyBinary() {
159 const result = childProcess.spawnSync(targetBinary, ["--version"], {
160 encoding: "utf8",
161 stdio: "ignore",
162 windowsHide: true,
163 })
164 return result.status === 0
165}
166
167function main() {
168 for (const name of packageNames()) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected