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
parent abe6afc09f
commit 3a276bd336

View File

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