diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-02-24 22:23:00 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-04-07 14:57:56 +0530 |
commit | 73330ce48af875498a5b59d99f23591a29a46351 (patch) | |
tree | b39b23e7de165f95d4a2c52ec949f9baa52ff6d7 | |
parent | dfba7e747845c92b8d9f38a140a2e45288f0ab60 (diff) |
optimization: curl: resume from cache and skip fully cached files
-rwxr-xr-x | soibox | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |