Skip to content

Commit 96d00d5

Browse files
committed
Don't run commands in shell
1 parent 40b7fee commit 96d00d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/utils/run_process.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Future<RunProcessResult> runProcess({
3939
arguments,
4040
workingDirectory: workingDirectory?.toFilePath(),
4141
environment: environment,
42-
runInShell: Platform.isWindows && workingDirectory != null,
42+
runInShell: false,
4343
);
4444

4545
final stdoutSub = process.stdout.listen(
@@ -121,7 +121,7 @@ RunProcessResult runProcessSync({
121121
arguments,
122122
workingDirectory: workingDirectory?.toFilePath(),
123123
environment: environment,
124-
runInShell: Platform.isWindows && workingDirectory != null,
124+
runInShell: false,
125125
);
126126
final runResult = RunProcessResult(
127127
pid: result.pid,

0 commit comments

Comments
 (0)