Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Created August 27, 2016 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3ntu/3280879f5c3ba152bbed5e62651bb7c5 to your computer and use it in GitHub Desktop.
Save z3ntu/3280879f5c3ba152bbed5e62651bb7c5 to your computer and use it in GitHub Desktop.
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