Skip to content

Commit

Permalink
Allow curl link redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Aug 11, 2024
1 parent 8ecfd96 commit afece40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/downloaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl DownloaderImpl for GitClone {
shell.set_current_dir(path);
shell.add_command("mkdir -p sccmod_patches");
shell.add_command("cd sccmod_patches");
shell.add_command(&format!("curl -O {patch}"));
shell.add_command(&format!("curl -OL {patch}"));

let (result, stdout, stderr) = shell.exec();

Expand Down Expand Up @@ -322,7 +322,7 @@ impl DownloaderImpl for Curl {

let mut command = Command::new("curl");
command.current_dir(path.as_ref());
command.arg("-o");
command.arg("-OL");
command.arg(FILE_NAME);
command.arg(&self.url);

Expand Down

0 comments on commit afece40

Please sign in to comment.