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 bd49092 commit 93b2c9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sccmod"
authors = ["Toby Davis \"Pencilcaseman\""]
version = "0.5.3"
version = "0.5.4"
edition = "2021"
readme = "README.md"
license = "MIT OR Apache-2.0"
Expand Down
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 -OL {patch}"));
shell.add_command(&format!("curl -LO {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("-OL");
command.arg("-LO");
command.arg(FILE_NAME);
command.arg(&self.url);

Expand Down

0 comments on commit 93b2c9a

Please sign in to comment.