models : add support for wget2 for fedora (#2387)

This commit is contained in:
Brad Murray 2024-08-28 04:46:01 -04:00 committed by GitHub
parent 8bfa8574e2
commit d2986f8b07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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