From 6553062281767cf335587947b1c5b4d9a6cd97ad Mon Sep 17 00:00:00 2001 From: andrewflbarnes Date: Wed, 6 Mar 2024 23:12:36 +0000 Subject: [PATCH] Fix erroneous output in jenv jenv doctor Ensures the jenv add text is shown rather than executed --- README.md | 2 +- libexec/jenv-doctor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c855c02..25b361b 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ To verify `jenv` was installed, run `jenv doctor`. On a macOS machine, you'll ob $ 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 ``` diff --git a/libexec/jenv-doctor b/libexec/jenv-doctor index 83d9e35..2dfdc16 100755 --- a/libexec/jenv-doctor +++ b/libexec/jenv-doctor @@ -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