Skip to content

Commit

Permalink
Merge pull request #337 from apache/2pk03-grep.java
Browse files Browse the repository at this point in the history
Update Grep.java
  • Loading branch information
zkaoudi authored Aug 17, 2023
2 parents d3bd2de + f1ebc33 commit c0afbc5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ public static void main(String... args) throws Exception {
String input = args[2]+"/python/src/pywy/tests/resources/10e"+size+"MB.input";
String output = args[2]+"/lala.out";

String command = "rm -r "+output;
Runtime rt = Runtime.getRuntime();
Process process = rt.exec(new String[] {
(command)});
String[] command = {"rm", "-r", output};
Process process = Runtime.getRuntime().exec(command);

long pre = System.currentTimeMillis();
switch (platform){
Expand Down

0 comments on commit c0afbc5

Please sign in to comment.