-
-
Save z3ntu/3280879f5c3ba152bbed5e62651bb7c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mediathek b/mediathek | |
index b397cd8..1f41717 100644 | |
--- a/mediathek | |
+++ b/mediathek | |
@@ -1,4 +1,10 @@ | |
#!/bin/sh | |
-export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH | |
+if [ -d "/usr/lib/jvm/java-8-jdk" ]; then | |
+ export PATH=/usr/lib/jvm/java-8-jdk/jre/bin/:$PATH | |
+elif [ -d "/usr/lib/jvm/java-8-jre" ]; then | |
+ export PATH=/usr/lib/jvm/java-8-jre/jre/bin/:$PATH | |
+else | |
+ export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH | |
+fi | |
cd /opt/mediathek | |
java -jar MediathekView.jar $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment