models : cd statements are quoted to allow spaces in path (#1041)

This commit is contained in:
Roddur Dasgupta 2023-06-25 05:27:28 -07:00 committed by GitHub
parent 8ac23c9f77
commit f11f33f1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View 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.