()
| 85 | * COMSPEC is left unchanged for system process execution. |
| 86 | */ |
| 87 | export function setShellIfWindows(): void { |
| 88 | if (getPlatform() === 'windows') { |
| 89 | const gitBashPath = findGitBashPath() |
| 90 | process.env.SHELL = gitBashPath |
| 91 | logForDebugging(`Using bash path: "${gitBashPath}"`) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Find the path where `bash.exe` included with git-bash exists, exiting the process if not found. |
no test coverage detected