(cmd)
| 211 | // ═══════════════════════════════════════════════════════════════════════════ |
| 212 | |
| 213 | function commandExists(cmd) { |
| 214 | const result = |
| 215 | process.platform === "win32" |
| 216 | ? spawnSync("where.exe", [cmd], { stdio: "pipe" }) |
| 217 | : spawnSync("sh", ["-c", `command -v ${cmd}`], { stdio: "pipe" }); |
| 218 | |
| 219 | return result.status === 0; |
| 220 | } |
| 221 | |
| 222 | function checkPrerequisites() { |
| 223 | logStep("1/3", "Checking prerequisites..."); |
no outgoing calls
no test coverage detected