feat: add exec host routing + node daemon
This commit is contained in:
1 parent
49bd2d96fa
commit
ae0b4c4990
38 files changed
+2370
-117
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export function buildNodeShellCommand(command: string, platform?: string | null) {
|
||||
const normalized = String(platform ?? "")
|
||||
.trim()
|
||||
.toLowerCase();
|
||||
if (normalized.includes("win")) {
|
||||
return ["cmd.exe", "/d", "/s", "/c", command];
|
||||
}
|
||||
return ["/bin/sh", "-lc", command];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user