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