From 34937cd9e566930b88b3b6a04023d58add5337a8 Mon Sep 17 00:00:00 2001 From: streamer45 Date: Tue, 29 Oct 2024 15:20:06 -0600 Subject: [PATCH] Fix expression --- build/prepare_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/prepare_deps.sh b/build/prepare_deps.sh index 32221a6..3cc2439 100644 --- a/build/prepare_deps.sh +++ b/build/prepare_deps.sh @@ -36,7 +36,7 @@ wget https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v${WHISPER_VERSI echo "${WHISPER_SHA} v${WHISPER_VERSION}.tar.gz" | sha256sum --check && \ tar xf v${WHISPER_VERSION}.tar.gz && \ cd whisper.cpp-${WHISPER_VERSION} && \ -if [ "$TARGET_ARCH" == "amd64" ] && [ "$IS_BUILD" == "true" ]; then echo "Patching Whisper.CPP Makefile to control CPU extensions" && patch -p1 Makefile /src/build/whisper.patch; fi && \ +([[ "$TARGET_ARCH" == "amd64" ]] && [[ "$IS_BUILD" == "true" ]] && echo "Patching Whisper.CPP Makefile" && patch -p1 Makefile /src/build/whisper.patch) || true && \ for model in ${MODELS}; do ./models/download-ggml-model.sh "${model}"; done && \ make -j4 libwhisper.a UNAME_M=${UNAME_M} && \ cd /tmp && \