diff --git a/catvod/src/main/java/com/github/catvod/utils/Shell.java b/catvod/src/main/java/com/github/catvod/utils/Shell.java index 9563e9c11..6b4b4dcc4 100644 --- a/catvod/src/main/java/com/github/catvod/utils/Shell.java +++ b/catvod/src/main/java/com/github/catvod/utils/Shell.java @@ -1,11 +1,13 @@ package com.github.catvod.utils; +import com.orhanobut.logger.Logger; + public class Shell { public static void exec(String command) { try { int code = Runtime.getRuntime().exec(command).waitFor(); - if (code != 0) throw new RuntimeException("Shell command failed with exit code " + code); + if (code != 0) Logger.e("Shell command failed with exit code " + code); } catch (Exception e) { e.printStackTrace(); }