(command: string)
| 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 { |