8000 azure-cli: Fix AzureCLIPath environment variable (#2717) · ScoopInstaller/Main@bf5ca8d · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
azure-cli: Fix AzureCLIPath environment variable (#2717)
Browse files Browse the repository at this point in the history
The 2 AzureCLIPath environment variables introduced in #1469 are not set to the actual az cli path. Since az is installed in the \wbin sub folder, as seen in the bin property. 

This for example resulted in tools using the go-autorest library not working when the az cli is installed using scoop. 
https://github.com/Azure/go-autorest/blob/c7f947c0610de1bc279f76e6d453353f95cd1bfa/autorest/azure/cli/token.go#L128
  • Loading branch information
aadje authored Oct 22, 2021
1 parent 9044c31 commit bf5ca8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bucket/azure-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://azurecliprod.azureedge.net/msi/azure-cli-$version.msi"
},
"env_set": {
"AzureCLIPath": "$dir",
"AZURE_CLI_PATH": "$dir"
"AzureCLIPath": "$dir\\wbin",
"AZURE_CLI_PATH": "$dir\\wbin"
}
}

0 comments on commit bf5ca8d

Please sign in to comment.
0