mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 14:54:20 +08:00
Merge branch 'resume-interrupted-downloads' into 'master'
Resume interrupted downloads See merge request redox-os/cookbook!315
This commit is contained in:
commit
749fd6202a
2
cook.sh
2
cook.sh
@ -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" ]
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user