MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / setShellIfWindows

Function setShellIfWindows

source code/utils/windowsPaths.ts:89–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 * COMSPEC is left unchanged for system process execution.
88 */
89export 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.

Callers 1

init.tsFile · 0.85

Calls 2

getPlatformFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected