From 63119eb87fd5c0de1a05cb55d3c2df31f751ed31 Mon Sep 17 00:00:00 2001 From: Robin Han Date: Thu, 23 Nov 2023 16:25:33 +0800 Subject: [PATCH] feat(s3stream): command utils make run to static method Signed-off-by: Robin Han --- .../src/main/java/com/automq/stream/utils/CommandUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3stream/src/main/java/com/automq/stream/utils/CommandUtils.java b/s3stream/src/main/java/com/automq/stream/utils/CommandUtils.java index 5563a171c..2b2e86caa 100644 --- a/s3stream/src/main/java/com/automq/stream/utils/CommandUtils.java +++ b/s3stream/src/main/java/com/automq/stream/utils/CommandUtils.java @@ -21,7 +21,7 @@ import java.io.IOException; public class CommandUtils { - public CommandResult run(String... cmd) { + public static CommandResult run(String... cmd) { try { Process p = Runtime.getRuntime().exec(cmd); try (BufferedReader inputReader = p.inputReader();