Ensure `curl` has `-L` flag to download native client

Because GitHub seems to be using 302 redirects to serve files off of some sort of CDN, and plain `curl` fails
This commit is contained in:
Kathy Reid 2021-05-16 15:55:34 +10:00 коммит произвёл GitHub
Родитель 4af293503c
Коммит 08329656cc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -224,7 +224,7 @@ To install `generate_scorer_package`, first download the relevant `native client
The easiest way to download the package and extract it is using `curl [URL] | tar -Jxvf [FILENAME]`:
```
root@dcb62aada58b:/DeepSpeech/data/lm# curl https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/native_client.amd64.cuda.linux.tar.xz | tar -Jxvf native_client.amd64.cuda.linux.tar.xz
root@dcb62aada58b:/DeepSpeech/data/lm# curl -L https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/native_client.amd64.cuda.linux.tar.xz -o native_client.amd64.cuda.linux.tar.xz && tar -Jxvf native_client.amd64.cuda.linux.tar.xz
libdeepspeech.so
generate_scorer_package
LICENSE
@ -233,6 +233,8 @@ deepspeech.h
README.mozilla
```
_NOTE: `curl -L` is used here to follow any 302 redirect headers that are served.
You can now generate a `ken.lm` scorer file.
```