mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Add a comment to explain where.exe
This commit is contained in:
parent
396d53367b
commit
5ec3b755e2
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ if (!geminiSandbox) {
|
|||
geminiSandbox = (geminiSandbox || '').toLowerCase();
|
||||
|
||||
const commandExists = (cmd) => {
|
||||
// Use 'where.exe' (not 'where') on Windows because PowerShell aliases
|
||||
// 'where' to 'Where-Object', which breaks command detection.
|
||||
const checkCommand = os.platform() === 'win32' ? 'where.exe' : 'command -v';
|
||||
try {
|
||||
execSync(`${checkCommand} ${cmd}`, { stdio: 'ignore' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue