MCPcopy Index your code
hub / github.com/anomalyco/opencode / fallback

Function fallback

packages/core/src/shell.ts:132–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132function fallback() {
133 if (process.platform === "darwin") return "/bin/zsh"
134 const bash = which("bash")
135 if (bash) return bash
136 return "/bin/sh"
137}
138
139export function name(file: string) {
140 if (process.platform === "win32") return path.win32.parse(FSUtil.windowsPath(file)).name.toLowerCase()

Callers 1

selectFunction · 0.70

Calls 1

whichFunction · 0.90

Tested by

no test coverage detected