From 4b45666262125f6a7a135080c45aeb91c601e074 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Thu, 9 Jan 2025 14:56:33 +0100 Subject: [PATCH] Fix call to where.exe on Windows Signed-off-by: Fred Bricon --- core/util/ollamaHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util/ollamaHelper.ts b/core/util/ollamaHelper.ts index 936c6339b..1e9c52490 100644 --- a/core/util/ollamaHelper.ts +++ b/core/util/ollamaHelper.ts @@ -4,7 +4,7 @@ import { exec } from "node:child_process"; export async function isOllamaInstalled(): Promise { return new Promise((resolve, _reject) => { - const command = process.platform === "win32" ? "where ollama" : "which ollama"; + const command = process.platform === "win32" ? "where.exe ollama" : "which ollama"; exec(command, (error, _stdout, _stderr) => { resolve(!error); });