Skip to content

Commit

Permalink
Merge branch 'master' into fix-macos-system-ready-for-pull
Browse files Browse the repository at this point in the history
# Conflicts:
#	set-java-home.zsh
  • Loading branch information
delgurth committed Apr 6, 2021
2 parents 3fe4801 + cedde6d commit 241a906
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions set-java-home.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
function absolute_dir_path {
local absolute_path
absolute_path="$( cd -P "$( dirname "$1" )" && pwd )"
echo "$absolute_path"
}

asdf_update_java_home() {
local java_path
java_path="$(asdf which java)"
Expand All @@ -13,7 +7,7 @@ asdf_update_java_home() {
JAVA_HOME="$(/usr/libexec/java_home)"
else
export JAVA_HOME
JAVA_HOME="$(dirname "$(absolute_dir_path "${java_path}")")"
JAVA_HOME="$(dirname "$(dirname "${java_path:A}")")"
fi
fi
}
Expand Down

0 comments on commit 241a906

Please sign in to comment.