openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 355 B
JavaScript
//#region src/infra/login-shell-path-carrier.ts
/** Carry a PATH prefix through shell startup without interpolating it as shell code. */
function prependShellPath(e, t, n) {
t.OPENCLAW_PREPEND_PATH = n;
return `export PATH="\${OPENCLAW_PREPEND_PATH}\${PATH:+:$PATH}"; unset OPENCLAW_PREPEND_PATH; ${e}`;
}
//#endregion
export { prependShellPath as t };