Skip to content

Commit 2cb4c85

Browse files
Update install.sh
1 parent df75973 commit 2cb4c85

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/android-sdk/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ OG_JAVA_HOME=$JAVA_HOME
5858

5959
# thanks https://askubuntu.com/questions/772235/how-to-find-path-to-java#comment2258200_1029326.
6060

61-
java --version
61+
# checking the output as dirname is returning “.”
62+
63+
update-alternatives --list javac 2>&1 | head -n 1
6264

6365
export JAVA_HOME=$(dirname $(dirname $(update-alternatives --list javac 2>&1 | head -n 1)))
6466

0 commit comments

Comments
 (0)