From: Brad Murray Date: Wed, 28 Aug 2024 08:46:01 +0000 (-0400) Subject: models : add support for wget2 for fedora (#2387) X-Git-Tag: upstream/1.7.4~481 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d2986f8b079507065baf569095d939132214ff9a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp models : add support for wget2 for fedora (#2387) --- diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh index 1f1075b6..ca2cefe7 100755 --- a/models/download-ggml-model.sh +++ b/models/download-ggml-model.sh @@ -101,7 +101,9 @@ if [ -f "ggml-$model.bin" ]; then exit 0 fi -if [ -x "$(command -v wget)" ]; then +if [ -x "$(command -v wget2)" ]; then + wget2 --no-config --progress bar -O 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 elif [ -x "$(command -v curl)" ]; then curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin