Resume interrupted downloads

This commit is contained in:
mattmadeofpasta 2023-11-08 13:11:50 +00:00
parent 4ba2f96a86
commit 536118a146
No known key found for this signature in database
GPG Key ID: 020D6BD1B8975037
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