Skip to content

Commit 233e870

Browse files
authored
[DXP-1821] Fix streamx init on Windows
1 parent 28bf730 commit 233e870

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/dev/streamx/cli/util/os/CmdCommandStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class CmdCommandStrategy implements OsCommandStrategy {
55

66
@Override
77
public ProcessBuilder create(String command) {
8-
String[] commandArray = {"cmd.exe", "-c", command};
8+
String[] commandArray = {"cmd.exe", "/c", command};
99
return new ProcessBuilder(commandArray);
1010
}
1111
}

e2e-tests/src/main/java/dev/streamx/cli/test/tools/terminal/command/CmdCommandStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class CmdCommandStrategy implements OsCommandStrategy {
55

66
@Override
77
public ProcessBuilder create(String command) {
8-
String[] commandArray = {"cmd.exe", "-c", command};
8+
String[] commandArray = {"cmd.exe", "/c", command};
99
return new ProcessBuilder(commandArray);
1010
}
1111
}

0 commit comments

Comments
 (0)