mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-21 16:01:35 +08:00
Add clarifying comment for bash verification fallback
Co-authored-by: DeJeune <67425183+DeJeune@users.noreply.github.com>
This commit is contained in:
parent
0d6532eba0
commit
5e1627f349
@ -553,7 +553,8 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify bash is actually executable by trying to run it
|
// If bash.exe was not found at expected relative paths, try running bash directly
|
||||||
|
// This handles cases where bash might be available through other mechanisms (e.g., PATH configured differently)
|
||||||
try {
|
try {
|
||||||
execSync('bash --version', { encoding: 'utf8', stdio: ['pipe', 'pipe', 'ignore'] })
|
execSync('bash --version', { encoding: 'utf8', stdio: ['pipe', 'pipe', 'ignore'] })
|
||||||
logger.debug('Git Bash verified via bash --version', { gitPath })
|
logger.debug('Git Bash verified via bash --version', { gitPath })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user