fix: use cross-platform az CLI detection (az version instead of which)
This commit is contained in:
parent
a0c6a614dc
commit
0c9c874241
@ -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
2
pnpm-lock.yaml
generated
@ -244,6 +244,8 @@ importers:
|
||||
|
||||
extensions/anthropic: {}
|
||||
|
||||
extensions/azure-foundry: {}
|
||||
|
||||
extensions/bluebubbles:
|
||||
dependencies:
|
||||
zod:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user