Skip to content

Commit 85365e7

Browse files
Refactor DriverqueryCommand to simplify command list
Removed unnecessary command execution for cmd.exe.
1 parent a9bff09 commit 85365e7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/main/java/com/mycmd/commands/DriverqueryCommand.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public void execute(String[] args, ShellContext context) throws IOException {
2929
try {
3030

3131
List<String> command = new ArrayList<>();
32-
command.add("cmd.exe");
33-
command.add("/c");
3432
command.add("driverquery");
3533
if (args != null && args.length > 0) {
3634
command.addAll(Arrays.asList(args));

0 commit comments

Comments
 (0)