Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Mar 5, 2024
1 parent 29ee1e7 commit e30edee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ public static void startContainers() {
LOG.info("Containers doris are started.");
}

static void test(String cmd){
try{
static void test(String cmd) {
try {
Process p = Runtime.getRuntime().exec(cmd);
InputStream is = p.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
String line;
while((line = reader.readLine())!= null){
while ((line = reader.readLine()) != null) {
System.out.println(line);
}
p.waitFor();
is.close();
reader.close();
p.destroy();
}catch (Exception e){
} catch (Exception e) {
e.printStackTrace();
}
}
Expand Down

0 comments on commit e30edee

Please sign in to comment.