diff --git a/dnn/download_model.sh b/dnn/download_model.sh index 75108e33f..bc88f150d 100755 --- a/dnn/download_model.sh +++ b/dnn/download_model.sh @@ -5,7 +5,12 @@ model=opus_data-$1.tar.gz if [ ! -f $model ]; then echo "Downloading latest model" - wget https://media.xiph.org/opus/models/$model + if command -v wget >/dev/null; then + wget -O $model https://media.xiph.org/opus/models/$model + else + # if wget is not available use curl + curl -o $model https://media.xiph.org/opus/models/$model + fi fi if command -v sha256sum