Handled snap curl issue inside Rust #107722

This commit is contained in:
Tharun Suresh 2023-02-09 15:53:20 +05:30
parent 4259073e9a
commit 858a4aa70c

View File

@ -221,10 +221,10 @@ impl Config {
"--retry",
"3",
"-Sf",
"-o",
]);
curl.arg(tempfile);
curl.arg(url);
let f = File::create(tempfile).unwrap();
curl.stdout(Stdio::from(f));
if !self.check_run(&mut curl) {
if self.build.contains("windows-msvc") {
println!("Fallback to PowerShell");