()
| 44 | } |
| 45 | |
| 46 | export async function ensureFdPath(): Promise<string | null> { |
| 47 | const existing = detectFdPath(); |
| 48 | if (existing !== null) return existing; |
| 49 | |
| 50 | try { |
| 51 | return await downloadFd(); |
| 52 | } catch { |
| 53 | return null; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | function detectSystemFdPath(): string | null { |
| 58 | for (const name of CANDIDATES) { |
no test coverage detected