]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
models : cd statements are quoted to allow spaces in path (#1041)
authorRoddur Dasgupta <redacted>
Sun, 25 Jun 2023 12:27:28 +0000 (05:27 -0700)
committerGitHub <redacted>
Sun, 25 Jun 2023 12:27:28 +0000 (15:27 +0300)
examples/whisper.nvim/whisper.nvim
models/download-ggml-model.cmd

index 8807fac04b423b6569ae6f98bab91f380fe9dec8..203eddb5c88ba1f052674af2261b6002643f409a 100755 (executable)
@@ -32,7 +32,7 @@ model="base.en"
 
 # export the path to the whisper.cpp repo in the WHISPER_CPP_HOME env variable
 # https://github.com/ggerganov/whisper.cpp
-cd ${WHISPER_CPP_HOME}
+cd "${WHISPER_CPP_HOME}"
 
 if [ ! -f ./stream ] ; then
     echo "whisper.nvim: the 'stream' executable was not found! WHISPER_CPP_HOME=${WHISPER_CPP_HOME}" > /tmp/whisper.nvim
index f4ce633914c52e232d215f24b0dc977aaa0d4256..8220ac597ca5ba46cf87925f1017b19e3cd4f580 100644 (file)
@@ -33,7 +33,7 @@ goto :eof
 :download_model
 echo Downloading ggml model %model%...
 
-cd %models_path%
+cd "%models_path%"
 
 if exist "ggml-%model%.bin" (
   echo Model %model% already exists. Skipping download.