shellcheck

Install latest/stable of shellcheck

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install shellcheck

Don't have snapd? Get set up for snaps.

Channel Version Published

A shell script static analysis tool

ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh shell scripts.

The goals of ShellCheck are

  • To point out and clarify typical beginner's syntax issues that cause a shell to give cryptic error messages.

  • To point out and clarify typical intermediate level semantic problems that cause a shell to behave strangely and counter-intuitively.

  • To point out subtle caveats, corner cases and pitfalls that may cause an advanced user's otherwise working script to fail under future circumstances.

By default ShellCheck can only check non-hidden files under /home, to make ShellCheck be able to check files under /media and /run/media you must connect it to the removable-media interface manually:

 # snap connect shellcheck:removable-media

Details for shellcheck

License
  • GPL-3.0+

Last updated
  • 13 December 2022 - latest/stable
  • 15 April 2024 - latest/edge

Websites

Share this snap

Generate an embeddable card to be shared on external websites.


Install shellcheck on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.


Where people are using shellcheck

Users by distribution (log)

Ubuntu 22.04
Ubuntu 20.04
Ubuntu 18.04
Ubuntu 23.10
pop 22.04
CentOS 7
Ubuntu 23.04
CentOS 8
KDE Neon 22.04
rocky 8.7
Ubuntu 24.04
Debian 11
Linux Mint 21.2
Manjaro
rhel 8.9
Debian 12
Ubuntu 16.04
Ubuntu 22.10
Linux Mint 21.3
Debian sid
Linux Mint 20.3

Is there a problem with shellcheck? Report this app