Fix Docker path quoting and VSCode terminal env
This commit is contained in:
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"terminal.integrated.env.windows": {
|
||||||
|
"PATH": "${env:PATH};C:\\Program Files\\Docker\\Docker\\resources\\bin"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,7 +13,7 @@ async function run(command: string, args: string[], stdio: "ignore" | "inherit"
|
|||||||
const child = spawn(command, args, {
|
const child = spawn(command, args, {
|
||||||
stdio: ["ignore", stdio, "inherit"],
|
stdio: ["ignore", stdio, "inherit"],
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
shell: process.platform === "win32",
|
shell: process.platform === "win32" && !path.isAbsolute(command),
|
||||||
});
|
});
|
||||||
|
|
||||||
child.on("error", (error) => {
|
child.on("error", (error) => {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ async function run(command: string, args: string[], cwd = process.cwd()): Promis
|
|||||||
cwd,
|
cwd,
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
shell: process.platform === "win32",
|
shell: process.platform === "win32" && !path.isAbsolute(command),
|
||||||
});
|
});
|
||||||
|
|
||||||
child.on("error", (error) => {
|
child.on("error", (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user