llm-wiki-kit 0.2.13 → 0.2.14
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 +1 -1
- package/src/update.js +3 -1
package/package.json
CHANGED
package/src/update.js
CHANGED
|
@@ -26,6 +26,7 @@ async function runCommand(command, args, options = {}) {
|
|
|
26
26
|
const label = options.label || commandLine(command, args);
|
|
27
27
|
const startedAt = Date.now();
|
|
28
28
|
const windows = isWindows(options);
|
|
29
|
+
const useShell = options.shell !== undefined ? options.shell : windows;
|
|
29
30
|
const detached = !windows;
|
|
30
31
|
let stdout = '';
|
|
31
32
|
let stderr = '';
|
|
@@ -69,7 +70,7 @@ async function runCommand(command, args, options = {}) {
|
|
|
69
70
|
child = spawn(command, args, {
|
|
70
71
|
detached,
|
|
71
72
|
env: options.env || process.env,
|
|
72
|
-
shell:
|
|
73
|
+
shell: useShell,
|
|
73
74
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
74
75
|
});
|
|
75
76
|
} catch (error) {
|
|
@@ -455,6 +456,7 @@ export async function update(options = {}) {
|
|
|
455
456
|
LLM_WIKI_KIT_PROGRESS: process.env.LLM_WIKI_KIT_PROGRESS || '1',
|
|
456
457
|
},
|
|
457
458
|
label: 'post-update',
|
|
459
|
+
shell: false,
|
|
458
460
|
timeout: options.timeout || 120000,
|
|
459
461
|
});
|
|
460
462
|
assertCommandOk(postResult, 'post-update');
|