From: Roddur Dasgupta Date: Sun, 25 Jun 2023 12:27:28 +0000 (-0700) Subject: models : cd statements are quoted to allow spaces in path (#1041) X-Git-Tag: upstream/1.7.4~1403 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f11f33f1c09c60561af86d4dc18d450555480cce;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp models : cd statements are quoted to allow spaces in path (#1041) --- diff --git a/examples/whisper.nvim/whisper.nvim b/examples/whisper.nvim/whisper.nvim index 8807fac0..203eddb5 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 f4ce6339..8220ac59 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.