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