azure-cli: Fix AzureCLIPath environment variable (#2717)

The 2 AzureCLIPath environment variables introduced in https://github.com/ScoopInstaller/Main/pull/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. 
c7f947c061/autorest/azure/cli/token.go (L128)
This commit is contained in:
Arjan van Rijn 2021-10-22 10:30:34 +02:00 committed by GitHub
parent 9044c3141b
commit bf5ca8d171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
}