openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 404 B
JavaScript
import { r as defaultRuntime } from "./runtime-DlO3PTAd.mjs";
import { n as runExec } from "./exec-CMAKGVCq.mjs";
//#region src/infra/binaries.ts
async function ensureBinary(name, exec = runExec, runtime = defaultRuntime) {
await exec("which", [name]).catch(() => {
runtime.error(`Missing required binary: ${name}. Please install it.`);
runtime.exit(1);
});
}
//#endregion
export { ensureBinary };