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();