()
| 106 | } |
| 107 | |
| 108 | async function unix() { |
| 109 | const text = await readFile("/etc/shells", "utf8").catch(() => "") |
| 110 | if (text) return Array.from(new Set(text.split("\n").filter((line) => line.trim() && !line.startsWith("#")))) |
| 111 | return ["/bin/bash", "/bin/zsh", "/bin/sh"] |
| 112 | } |
| 113 | |
| 114 | function select(file: string | undefined, opts?: { acceptable?: boolean }) { |
| 115 | if (file && (!opts?.acceptable || ok(file))) { |
no test coverage detected