mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 06:41:41 +01:00
Only exit script if no javapackager exists for configured JDK
This commit is contained in:
parent
bde720f4d4
commit
8b5454ff3d
1 changed files with 7 additions and 5 deletions
|
@ -7,11 +7,13 @@
|
|||
# - Ensure JAVA_HOME below is pointing to OracleJDK 10 directory
|
||||
|
||||
version=0.9.3-SNAPSHOT
|
||||
if [ ! -f "$JAVA_HOME/bin/javapackager" ] && [ -d "/usr/lib/jvm/jdk-10.0.2" ]; then
|
||||
JAVA_HOME=/usr/lib/jvm/jdk-10.0.2
|
||||
else
|
||||
echo Javapackager not found. Update JAVA_HOME variable to point to OracleJDK.
|
||||
exit 1
|
||||
if [ ! -f "$JAVA_HOME/bin/javapackager" ]; then
|
||||
if [ -d "/usr/lib/jvm/jdk-10.0.2" ]; then
|
||||
JAVA_HOME=/usr/lib/jvm/jdk-10.0.2
|
||||
else
|
||||
echo Javapackager not found. Update JAVA_HOME variable to point to OracleJDK.
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
base_dir=$( cd "$(dirname "$0")" ; pwd -P )/../../..
|
||||
|
|
Loading…
Add table
Reference in a new issue