From 86b43b6e6504efde0a7f426f518964d680a51a4e Mon Sep 17 00:00:00 2001 From: Robin Han Date: Thu, 23 Nov 2023 16:30:13 +0800 Subject: [PATCH] feat(s3stream): command utils make run to static method (#710) 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();