summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpescepalla2019-03-25 22:18:27 +0100
committerpescepalla2019-03-25 22:18:27 +0100
commitb5527d2fdf400e92d40636b3a35d8fffb82e3ead (patch)
tree4678c96f0d074d5677fbd65868aca98a8cdfd0c0
parente7ad2af405edc922e37a03e76022c17ca6ae25b6 (diff)
downloadaur-b5527d2fdf400e92d40636b3a35d8fffb82e3ead.tar.gz
switch to java8 if needed
-rw-r--r--cmaptools7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmaptools b/cmaptools
index 57103440d70..4356f79ba14 100644
--- a/cmaptools
+++ b/cmaptools
@@ -1,3 +1,8 @@
#!/bin/sh
-
+if archlinux-java status | grep -q 8
+then
+ export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
+else
+ export PATH=/usr/lib/jvm/java-7-openjdk/jre/bin/:$PATH
+fi
exec /opt/cmaptools/bin/CmapTools