Browse Source

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.
pull/346/head
combscCode 4 years ago committed by GitHub
parent
commit
2a9a2d76bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

2
README.md

@ -101,7 +101,7 @@ For example, on macOS, use `brew` to install the latest Java (OpenJDK 11) follow @@ -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!

Loading…
Cancel
Save