Skip to content

Commit

Permalink
Merge pull request #2 from thuandt/master
Browse files Browse the repository at this point in the history
Fix issue when running with system java
  • Loading branch information
weibemoura authored Apr 11, 2020
2 parents 160e9ee + 8a637ad commit 11f4b4e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/exec-env
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash
# if asdf provides java, then let's use that rather the system one (if at all avail)
if asdf current java > /dev/null 2>&1 ; then
JAVA_HOME=$(asdf where java)
export JAVA_HOME
fi

JAVA_HOME=$(realpath $(dirname $(readlink -f $(asdf which java)))/../)
export JAVA_HOME

0 comments on commit 11f4b4e

Please sign in to comment.