diff options
Diffstat (limited to 'scripts/rebuild.sh')
-rw-r--r-- | scripts/rebuild.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh index 44e9f12..54c658c 100644 --- a/scripts/rebuild.sh +++ b/scripts/rebuild.sh @@ -6,10 +6,14 @@ bname=`basename $0 .sh` . $sdir/setup-machine-arch.sh -logfile=$bname-$archabi.log +logfile=$rootdir/$bname-$archabi.log rm -f $logfile -export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-$archabi +if [ -e /usr/lib/jvm/java-17-openjdk-$archabi ] ; then + export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-$archabi +elif [ -e /usr/lib/jvm/java-11-openjdk-$archabi ] ; then + export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-$archabi +fi if [ ! -e $JAVA_HOME ] ; then echo $JAVA_HOME does not exist exit 1 |