Update Shell.java

pull/307/head
FongMi 2 years ago
parent 89d110cc04
commit dc40bda714
  1. 4
      catvod/src/main/java/com/github/catvod/utils/Shell.java

@ -4,10 +4,12 @@ import com.orhanobut.logger.Logger;
public class Shell {
private static final String TAG = Shell.class.getSimpleName();
public static void exec(String command) {
try {
int code = Runtime.getRuntime().exec(command).waitFor();
if (code != 0) Logger.e("Shell command failed with exit code " + code);
if (code != 0) Logger.t(TAG).d("Shell command '%s' failed with exit code '%s'", command, code);
} catch (Exception e) {
e.printStackTrace();
}

Loading…
Cancel
Save