README.md: pipe wget | tar to reduce duplication

This commit is contained in:
cclauss 2019-02-18 09:36:36 +01:00 committed by GitHub
commit 3a276bd336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,8 +191,7 @@ To install it on Redhat/Fedora/CentOS, run `yum -y install xz`.
```bash
export scversion="stable" # or "v0.4.7", or "latest"
wget "https://storage.googleapis.com/shellcheck/shellcheck-${scversion}.linux.x86_64.tar.xz"
tar --xz -xvf shellcheck-"${scversion}".linux.x86_64.tar.xz
wget -qO- "https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv
cp shellcheck-"${scversion}"/shellcheck /usr/bin/
shellcheck --version
```