(file: string | undefined, opts?: { acceptable?: boolean })
| 106 | } |
| 107 | |
| 108 | function select(file: string | undefined, opts?: { acceptable?: boolean }) { |
| 109 | if (file && (!opts?.acceptable || ok(file))) { |
| 110 | const shell = resolve(file) |
| 111 | if (shell) return shell |
| 112 | } |
| 113 | if (process.platform === "win32") return win()[0]! |
| 114 | return fallback() |
| 115 | } |
| 116 | |
| 117 | export function gitbash() { |
| 118 | if (process.platform !== "win32") return |
no test coverage detected