From eca1bf447cc1da85e0b290fc46ebbd30ffd00fb1 Mon Sep 17 00:00:00 2001 From: Rikudo <245939414+OotsutsukiHagoromo@users.noreply.github.com> Date: Sat, 8 Aug 2026 15:14:08 +0300 Subject: [PATCH] suggestion: add `--continue` flag to `wget` and `wget2` --- models/download-ggml-model.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh index 0539c8afb..ae76ef600 100755 --- a/models/download-ggml-model.sh +++ b/models/download-ggml-model.sh @@ -118,7 +118,7 @@ if [ -f "ggml-$model.bin" ]; then fi if [ -x "$(command -v wget2)" ]; then - wget2 --no-config --progress bar -O ggml-"$model".bin $src/$pfx-"$model".bin + wget2 --no-config --progress bar --continue -O ggml-"$model".bin $src/$pfx-"$model".bin elif [ -x "$(command -v curl)" ]; then curl -L --fail \ --retry 5 \ @@ -128,7 +128,7 @@ elif [ -x "$(command -v curl)" ]; then ${HF_TOKEN:+--header "Authorization: Bearer $HF_TOKEN"} \ --output ggml-"$model".bin $src/$pfx-"$model".bin elif [ -x "$(command -v wget)" ]; then - wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin + wget --no-config --quiet --show-progress --continue -O ggml-"$model".bin $src/$pfx-"$model".bin else printf "Either wget2, curl, or wget is required to download models.\n" exit 1