Add instructions to install linux binary
This commit is contained in:
parent
f91b5bc270
commit
8c7efae393
22
README.md
22
README.md
|
@ -171,19 +171,21 @@ or see the [storage bucket listing](https://shellcheck.storage.googleapis.com/in
|
||||||
|
|
||||||
Travis CI has now integrated ShellCheck by default, so you don't need to manually install it.
|
Travis CI has now integrated ShellCheck by default, so you don't need to manually install it.
|
||||||
|
|
||||||
If you still want to do so in order to upgrade at your leisure or ensure the latest release:
|
If you still want to do so in order to upgrade at your leisure or ensure the latest release, follow the steps to install the shellcheck binary, bellow.
|
||||||
|
|
||||||
install:
|
## Installing the shellcheck binary
|
||||||
|
|
||||||
# Install a custom version of shellcheck instead of Travis CI's default
|
*Pre-requisite*: the program 'xz' needs to be installed on the system.
|
||||||
- scversion="stable" # or "v0.4.7", or "latest"
|
To install it on debian/ubuntu/linux mint, run `apt install xz-utils`.
|
||||||
- wget "https://storage.googleapis.com/shellcheck/shellcheck-$scversion.linux.x86_64.tar.xz"
|
To install it on Redhat/Fedora/CentOS, run `yum -y install xz`.
|
||||||
- tar --xz -xvf "shellcheck-$scversion.linux.x86_64.tar.xz"
|
|
||||||
- shellcheck() { "shellcheck-$scversion/shellcheck" "$@"; }
|
|
||||||
- shellcheck --version
|
|
||||||
|
|
||||||
script:
|
```bash
|
||||||
- shellcheck *.sh
|
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
|
||||||
|
cp shellcheck-"${scversion}"/shellcheck /usr/bin/
|
||||||
|
shellcheck --version
|
||||||
|
```
|
||||||
|
|
||||||
## Compiling from source
|
## Compiling from source
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue