(cmd)
| 184 | // ═══════════════════════════════════════════════════════════════════════════ |
| 185 | |
| 186 | function commandExists(cmd) { |
| 187 | const result = |
| 188 | process.platform === "win32" |
| 189 | ? spawnSync("where.exe", [cmd], { stdio: "pipe" }) |
| 190 | : spawnSync("sh", ["-c", `command -v ${cmd}`], { stdio: "pipe" }); |
| 191 | |
| 192 | return result.status === 0; |
| 193 | } |
| 194 | |
| 195 | function checkPrerequisites() { |
| 196 | logStep("1/3", "Checking prerequisites..."); |
no outgoing calls
no test coverage detected