update brew command

`brew cask` was deprecated according to [this comment](https://github.com/Homebrew/discussions/discussions/340#discussioncomment-232364). Should be `brew install`.
This commit is contained in:
quyleanh 2021-04-02 20:47:37 +07:00 committed by GitHub
parent b77932a5b7
commit e2d5af3ddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ make it avaliable from the `PATH`:
```bash
brew tap homebrew/cask-versions
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
brew install adoptopenjdk/openjdk/adoptopenjdk8
export JAVA_HOME="$(/usr/libexec/java_home --version 1.8)"
export PATH="$JAVA_HOME/bin:$PATH"
```