Browse Source

Merge pull request #425 from andrewflbarnes/bugfix/doctor-suggestion

Fix erroneous output in jenv jenv doctor
pull/334/merge
Barnesly 2 years ago committed by GitHub
parent
commit
e9153a699e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      README.md
  2. 2
      libexec/jenv-doctor

2
README.md

@ -88,7 +88,7 @@ To verify `jenv` was installed and initialised, run `jenv doctor`. On a macOS ma @@ -88,7 +88,7 @@ To verify `jenv` was installed and initialised, run `jenv doctor`. On a macOS ma
$ jenv doctor
[OK] No JAVA_HOME set
[ERROR] Java binary in path is not in the jenv shims.
[ERROR] Please check your path, or try using /path/to/java/home is not a valid path to java installation.
[ERROR] Please check your path, or try using `jenv add /path/to/java/home`
PATH : /Users/user/.jenv/libexec:/Users/user/.jenv/shims:/Users/user/.jenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[OK] Jenv is correctly loaded
```

2
libexec/jenv-doctor

@ -68,7 +68,7 @@ if [ "$EXPECTED_JAVA" = "$JAVA_BIN" ] ; then @@ -68,7 +68,7 @@ if [ "$EXPECTED_JAVA" = "$JAVA_BIN" ] ; then
cinfo "Java binaries in path are jenv shims"
else
cwarn "Java binary in path is not in the jenv shims."
cwarn "Please check your path, or try using `jenv add /path/to/java/home`."
cwarn "Please check your path, or try using \`jenv add /path/to/java/home\`."
cfix "PATH : $PATH"
fi

Loading…
Cancel
Save