MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / Shell

Class Shell

app/src/main/java/com/github/catvod/utils/Shell.java:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.github.catvod.utils;
2
3public class Shell {
4
5 public static void exec(String command) {
6 try {
7 int code = Runtime.getRuntime().exec(command).waitFor();
8 if (code != 0) throw new RuntimeException("Shell command failed with exit code " + code);
9 } catch (Exception e) {
10 e.printStackTrace();
11 }
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected