Merge branch 'resume-interrupted-downloads' into 'master'

Resume interrupted downloads

See merge request redox-os/cookbook!315
This commit is contained in:
Jeremy Soller 2023-11-08 16:31:19 +00:00
commit 749fd6202a
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function op {
then
if [ ! -f source.tar ]
then
wget "$TAR" -O source.tar
wget "$TAR" --continue -O source.tar
fi
if [ -n "$TAR_SHA256" ]

View File

@ -260,7 +260,7 @@ fi"#);
let mut command = Command::new("wget");
command.arg(tar);
command.arg("-O").arg(&source_tar_tmp);
command.arg("--continue").arg("-O").arg(&source_tar_tmp);
run_command(command)?;
// Move source.tar.tmp to source.tar atomically