Skip to content

Commit ca105cc

Browse files
authored
Merge pull request #22 from koterpillar/dont-use-shell-to-run
Don't use shell to start process
2 parents 4ca7ebd + 2dc1efe commit ca105cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/five-chairs-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cloudflared": patch
3+
---
4+
5+
Don't use shell to start process

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)