Open
Description
An example of jenv doctor
with non-0 (failure) exit code when the output says OK for all steps.
I have a Bash prompt hook that outputs non-0 exit status:
$ jenv doctor
[OK] No JAVA_HOME set
[OK] Java binaries in path are jenv shims
[OK] Jenv is correctly loaded
(Exit 1) command jenv "$command" "$@"
I do not use the export
plugin as jEnv works out-of-the-box for me without setting JAVA_HOME
, so the "OK" on the first line makes sense.
Everything seems to function correctly:
- My local use of the JVM is good in directories with a
.java-version
file - My use of the global settings works
- Running
jenv doctor
in an alien directory (/tmp
) works
Yet in all cases, jenv doctor
exits with a failure status.
Reference: https://github.com/binkley/modern-java-practices/wiki/The-JDK#jenv
Metadata
Metadata
Assignees
Labels
No labels