]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
readme : fix references to download-ggml-model.sh (#2427)
authorHugo <redacted>
Tue, 24 Sep 2024 18:07:51 +0000 (20:07 +0200)
committerGitHub <redacted>
Tue, 24 Sep 2024 18:07:51 +0000 (21:07 +0300)
The script itself has a hashbang indicating that it is a shell script,
but the README indicates that it must be executed with `bash`.

I checked the script itself, and it seems to be valid POSIX shell. I can
confirm that it works with busybox sh.

Clarify the reference on the README, so it is clear that bash is not
actually a dependency for this script.

README.md

index b5aa49eb27d32ab66dd338594290489d100de9a2..808717cb6078a0bffba53b2d188342a367b7696f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -75,7 +75,7 @@ git clone https://github.com/ggerganov/whisper.cpp.git
 Then, download one of the Whisper [models](models/README.md) converted in [`ggml` format](#ggml-format). For example:
 
 ```bash
-bash ./models/download-ggml-model.sh base.en
+sh ./models/download-ggml-model.sh base.en
 ```
 
 Now build the [main](examples/main) example and transcribe an audio file like this:
@@ -146,7 +146,7 @@ options:
   -ng,       --no-gpu            [false  ] disable GPU
 
 
-bash ./models/download-ggml-model.sh base.en
+sh ./models/download-ggml-model.sh base.en
 Downloading ggml model base.en ...
 ggml-base.en.bin               100%[========================>] 141.11M  6.34MB/s    in 24s
 Done! Model 'base.en' saved in 'models/ggml-base.en.bin'