(toolName, checkCommand)
| 68 | } |
| 69 | |
| 70 | function checkToolExists(toolName, checkCommand) { |
| 71 | try { |
| 72 | execSync(checkCommand, { stdio: 'ignore' }) |
| 73 | return true |
| 74 | } catch { |
| 75 | try { |
| 76 | execSync(`which ${toolName}`, { stdio: 'ignore' }) |
| 77 | return true |
| 78 | } catch { |
| 79 | try { |
| 80 | execSync(`where ${toolName}`, { stdio: 'ignore' }) |
| 81 | return true |
| 82 | } catch { |
| 83 | return false |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | function checkDockerRunning() { |
| 90 | try { |
no outgoing calls
no test coverage detected