File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -155,16 +155,17 @@ function Find-LinkExe {
155
155
}
156
156
157
157
$channel = ' stable'
158
- if ($null -ne (Get-Command msrustup - CommandType Application - ErrorAction Ignore)) {
158
+ $rustup = ' echo'
159
+ if ($usingADO ) {
160
+ break
161
+ } elseif ($null -ne (Get-Command msrustup - CommandType Application - ErrorAction Ignore)) {
159
162
$rustup = ' msrustup'
160
163
$channel = ' ms-stable'
161
164
if ($architecture -eq ' current' ) {
162
165
$env: MSRUSTUP_TOOLCHAIN = " $architecture "
163
166
}
164
167
} elseif ($null -ne (Get-Command rustup - CommandType Application - ErrorAction Ignore)) {
165
168
$rustup = ' rustup'
166
- } else {
167
- $rustup = ' echo'
168
169
}
169
170
170
171
if ($null -ne $packageType ) {
@@ -185,7 +186,7 @@ if ($null -ne $packageType) {
185
186
Remove-Item temp:/ rustup-init.exe - ErrorAction Ignore
186
187
}
187
188
}
188
- elseif ( ! $usingADO ) {
189
+ else {
189
190
Write-Verbose - Verbose " Rust found, updating..."
190
191
& $rustup update
191
192
}
You can’t perform that action at this time.
0 commit comments