Skip to content

Commit

Permalink
Merge pull request #22 from koterpillar/dont-use-shell-to-run
Browse files Browse the repository at this point in the history
Don't use shell to start process
  • Loading branch information
JacobLinCool committed Jun 19, 2024
2 parents 4ca7ebd + 2dc1efe commit ca105cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-chairs-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cloudflared": patch
---

Don't use shell to start process
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function main(): Promise<void> {
console.log("Installed cloudflared to " + (await install(bin)));
}

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

sub.on("exit", (code) => {
if (typeof code === "number") {
Expand Down

0 comments on commit ca105cc

Please sign in to comment.