fix: use cross-platform az CLI detection (az version instead of which)

This commit is contained in:
haxudev 2026-03-19 11:31:06 +08:00
parent a0c6a614dc
commit 0c9c874241
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,8 @@ function execCmd(cmd: string): string {
function isAzCliInstalled(): boolean {
try {
execCmd("which az");
// "az version" works on Windows, Linux, and macOS
execCmd("az version --output none");
return true;
} catch {
return false;

2
pnpm-lock.yaml generated
View File

@ -244,6 +244,8 @@ importers:
extensions/anthropic: {}
extensions/azure-foundry: {}
extensions/bluebubbles:
dependencies:
zod: