mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-03 10:08:45 +08:00
Resume interrupted downloads
This commit is contained in:
parent
4ba2f96a86
commit
536118a146
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