Function
select
(file: string | undefined, opts?: { acceptable?: boolean })
Source from the content-addressed store, hash-verified
| 112 | } |
| 113 | |
| 114 | function select(file: string | undefined, opts?: { acceptable?: boolean }) { |
| 115 | if (file && (!opts?.acceptable || ok(file))) { |
| 116 | const shell = resolve(file) |
| 117 | if (shell) return shell |
| 118 | } |
| 119 | if (process.platform === "win32") return win()[0] |
| 120 | return fallback() |
| 121 | } |
| 122 | |
| 123 | export function gitbash() { |
| 124 | if (process.platform !== "win32") return |
Tested by
no test coverage detected