fix: use which instead of command -v for openclaw CLI detection (closes #457) (#489)

This commit is contained in:
Anurag Saxena
2026-04-03 21:49:59 -04:00
committed by GitHub
parent 93b8668e9e
commit 006c337de5

View File

@@ -16,7 +16,7 @@ const getOpenClawSettingsPath = () => path.join(getOpenClawDir(), "openclaw.json
const checkOpenClawInstalled = async () => {
try {
const isWindows = os.platform() === "win32";
const command = isWindows ? "where openclaw" : "command -v openclaw";
const command = isWindows ? "where openclaw" : "which openclaw";
await execAsync(command, { windowsHide: true });
return true;
} catch {