From 89d110cc04cc539d84f116f005f371e1234bcf41 Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 21 Feb 2024 15:49:07 +0800 Subject: [PATCH] Clean code --- catvod/src/main/java/com/github/catvod/utils/Shell.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }