MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / wrap

Function wrap

e2e/src/vm/tart.ts:133–134  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

131
132 // Linux systemctl --user calls need XDG_RUNTIME_DIR; harmless elsewhere.
133 const wrap = (command: string): string =>
134 os === "linux" ? `export XDG_RUNTIME_DIR=/run/user/$(id -u); ${command}` : command;
135
136 const ssh = async (command: string): Promise<SshResult> => {
137 try {

Callers 1

sshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected