From 73330ce48af875498a5b59d99f23591a29a46351 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 24 Feb 2023 22:23:00 +0530 Subject: optimization: curl: resume from cache and skip fully cached files --- soibox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soibox b/soibox index f3df4f4..07bfd77 100755 --- a/soibox +++ b/soibox @@ -277,7 +277,7 @@ github_dl_release() grep -E -m1 -o "https://github.com/$1/releases/download/.*/.*\.tar\.([xg]z|zst)")" note "downloading ${1##*/}, ${release##*/}" - curl -LO "$release_link" --output-dir "${3:-$cache_dir}" + curl -LOC - "$release_link" --output-dir "${3:-$cache_dir}" tar -xaf "${cache_dir}/${release_link##*/}" -C "$data_dir" \ --one-top-level="${1##*/}:${release_gittag}-${release_id}" --strip-components 1 || @@ -365,7 +365,7 @@ setup_dxvk() if [ -z "$dxvk_exe" ] then note "downloading dxvk setup" - curl -LO "$dxvk_sh" --output-dir "$dl_path" || + curl -LOC - "$dxvk_sh" --output-dir "$dl_path" || die "failed to download setup_dxvk.sh" chmod +x "${dl_path}/setup_dxvk.sh" dxvk_exe="${dl_path}/setup_dxvk.sh" -- cgit v1.2.3