From 2a9a2d76bfdb5dd581c114cdbb8f4052a5af8e8d Mon Sep 17 00:00:00 2001 From: combscCode <33552662+combscCode@users.noreply.github.com> Date: Tue, 14 Dec 2021 11:04:54 -0500 Subject: [PATCH] docs: Add quotes around command substitution when `$(/usr/libexec/java_home)` outputs a path that has a space in it, it will not be interpreted properly unless quoted. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 065ae19..427b767 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ For example, on macOS, use `brew` to install the latest Java (OpenJDK 11) follow ```bash brew install --cask java -jenv add $(/usr/libexec/java_home) +jenv add "$(/usr/libexec/java_home)" ``` With macOS OpenJDK 11.0.2 installed, for example, either of these commands will add `/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home` as a valid JVM. Your JVM directory may vary!