Skip to content

Commit

Permalink
models : cd statements are quoted to allow spaces in path (ggerganov#…
Browse files Browse the repository at this point in the history
  • Loading branch information
roddurd authored Jun 25, 2023
1 parent ea6b46d commit f4a8b15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/whisper.nvim/whisper.nvim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion models/download-ggml-model.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f4a8b15

Please sign in to comment.