Instructions on how to install the shellcheck
command-line tool.
shellcheck
can be obtained here.
Copy the link for the version that you want to install from there (or just use
lastest one).
Get the shellcheck
archive and extract it with the following command:
curl -fsSL --retry 3 --insecure "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.darwin.x86_64.tar.xz" | sudo tar xz --no-same-owner --strip-components=1 -C /usr/local/bin/ shellcheck*/shellcheck
Since the previous command install the stable
version of the tool, the same command
can also be used to update the tool.
Run the following command on a terminal window:
shellcheck --version