MCPcopy Create free account
hub / github.com/Kilo-Org/kilocode / fallback

Function fallback

packages/opencode/src/shell/shell.ts:126–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126function fallback() {
127 if (process.platform === "darwin") return "/bin/zsh"
128 const bash = which("bash")
129 if (bash) return bash
130 return "/bin/sh"
131}
132
133export function name(file: string) {
134 if (process.platform === "win32") return path.win32.parse(Filesystem.windowsPath(file)).name.toLowerCase()

Callers 1

selectFunction · 0.70

Calls 1

whichFunction · 0.90

Tested by

no test coverage detected