diff --git a/set-java-home.bash b/set-java-home.bash index 05981d6c..0e6e9fdc 100644 --- a/set-java-home.bash +++ b/set-java-home.bash @@ -6,7 +6,7 @@ function _asdf_java_absolute_dir_path { function _asdf_java_update_java_home() { local java_path - java_path="$(asdf which java)" + java_path="$(asdf which java 2>/dev/null)" if [[ -n "${java_path}" ]]; then export JAVA_HOME JAVA_HOME="$(dirname "$(_asdf_java_absolute_dir_path "${java_path}")")"