Skip to content

Commit c871952

Browse files
authored
set azureauth version env var (#636)
1 parent ecdda1b commit c871952

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cargo/dist/msrustup.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ elseif ((Get-Command "azureauth" -ErrorAction SilentlyContinue) -ne $null) {
6969
azureauth ado token --output headervalue
7070
} else {
7171
$version = '0.9.1'
72+
$env:AZUREAUTH_VERSION = $version
7273
$script = "${env:TEMP}\install.ps1"
7374
$url = "https://raw.githubusercontent.com/AzureAD/microsoft-authentication-cli/$version/install/install.ps1"
7475
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
7576
Invoke-WebRequest $url -OutFile $script; if ($?) { &$script | Out-Null }; if ($?) { rm $script }
76-
77+
7778
$path = "$env:LOCALAPPDATA\Programs\AzureAuth\$version\azureauth.exe"
7879
& $path ado token --output headervalue | Out-String
7980
}

0 commit comments

Comments
 (0)