Skip to content

Commit c67f7ae

Browse files
committed
replace all instances of check_run in download with execution context
1 parent e11e640 commit c67f7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/src/core/download.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl Config {
214214
// options should be kept in sync with
215215
// src/bootstrap/src/core/download.rs
216216
// for consistency
217-
let mut curl = command("curl");
217+
let mut curl = command("curl").allow_failure();
218218
curl.args([
219219
// follow redirect
220220
"--location",
@@ -255,7 +255,7 @@ impl Config {
255255
curl.arg("--retry-all-errors");
256256
}
257257
curl.arg(url);
258-
if !self.check_run(&mut curl) {
258+
if !curl.run(&self) {
259259
if self.host_target.contains("windows-msvc") {
260260
eprintln!("Fallback to PowerShell");
261261
for _ in 0..3 {

0 commit comments

Comments
 (0)