querysub 0.286.0 → 0.288.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#! /bin/bash
|
|
2
2
|
tmux new -s machine-alwaysup -d
|
|
3
|
-
# Kill anything that is running on it first
|
|
4
3
|
tmux send-keys -t machine-alwaysup "C-c" Enter
|
|
5
4
|
sleep 3
|
|
5
|
+
# ctrl+c wasn't working, which causes huge issues, so... just kill the screen so it's definitely dead
|
|
6
|
+
tmux kill-session -t machine-alwaysup 2>/dev/null || true
|
|
7
|
+
tmux new -s machine-alwaysup -d
|
|
8
|
+
sleep 3
|
|
6
9
|
tmux send-keys -t machine-alwaysup "cd ~/machine-alwaysup && yarn machine-alwaysup" Enter
|
|
@@ -135,7 +135,7 @@ class MachineControllerBase {
|
|
|
135
135
|
gitRef: config.gitRef,
|
|
136
136
|
});
|
|
137
137
|
await runPromise("yarn install", { cwd: gitFolder });
|
|
138
|
-
await runPromise("bash machine-startup.sh", { cwd: os.homedir() });
|
|
138
|
+
await runPromise("bash machine-startup.sh", { cwd: os.homedir(), detach: true });
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
}
|
|
@@ -8,6 +8,7 @@ export async function runPromise(command: string, config?: {
|
|
|
8
8
|
quiet?: boolean;
|
|
9
9
|
// Never throw, just return the full output
|
|
10
10
|
nothrow?: boolean;
|
|
11
|
+
detach?: boolean;
|
|
11
12
|
}) {
|
|
12
13
|
return new Promise<string>((resolve, reject) => {
|
|
13
14
|
console.log(">" + blue(command));
|
|
@@ -15,6 +16,7 @@ export async function runPromise(command: string, config?: {
|
|
|
15
16
|
shell: true,
|
|
16
17
|
cwd: config?.cwd,
|
|
17
18
|
stdio: ["inherit", "pipe", "pipe"],
|
|
19
|
+
detached: config?.detach,
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
let fullOutput = "";
|