Skip to content

Commit 4147bb6

Browse files
committed
Don't use shell to start process
This makes sure the executable name isn't parsed by the shell, avoiding errors when the executable path contains spaces or possibly other special characters.
1 parent 4ca7ebd commit 4147bb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function main(): Promise<void> {
7878
console.log("Installed cloudflared to " + (await install(bin)));
7979
}
8080

81-
const sub = spawn(bin, args, { shell: true, stdio: "inherit" });
81+
const sub = spawn(bin, args, { stdio: "inherit" });
8282

8383
sub.on("exit", (code) => {
8484
if (typeof code === "number") {

0 commit comments

Comments
 (0)