From f11f33f1c09c60561af86d4dc18d450555480cce Mon Sep 17 00:00:00 2001 From: Roddur Dasgupta Date: Sun, 25 Jun 2023 05:27:28 -0700 Subject: [PATCH] models : cd statements are quoted to allow spaces in path (#1041) --- examples/whisper.nvim/whisper.nvim | 2 +- models/download-ggml-model.cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/whisper.nvim/whisper.nvim b/examples/whisper.nvim/whisper.nvim index 8807fac..203eddb 100755 --- a/examples/whisper.nvim/whisper.nvim +++ b/examples/whisper.nvim/whisper.nvim @@ -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 diff --git a/models/download-ggml-model.cmd b/models/download-ggml-model.cmd index f4ce633..8220ac5 100644 --- a/models/download-ggml-model.cmd +++ b/models/download-ggml-model.cmd @@ -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.