Skip to content

Commit

Permalink
Merge pull request #1 from passionne/master
Browse files Browse the repository at this point in the history
set JAVA_HOME in case java is managed by asdf java plugin
  • Loading branch information
weibemoura authored Oct 25, 2019
2 parents 6094302 + 4be1388 commit 160e9ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/exec-env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/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

0 comments on commit 160e9ee

Please sign in to comment.