Fix call to where.exe on Windows
Signed-off-by: Fred Bricon <fbricon@gmail.com>
This commit is contained in:
parent
3e09a43856
commit
4b45666262
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import { exec } from "node:child_process";
|
|||
|
||||
export async function isOllamaInstalled(): Promise<boolean> {
|
||||
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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue