#!/bin/sh ## Example of a broken script. for f in $(ls *.m3u) do grep -qi hq.*mp3 $f \ && echo -e 'Playlist $f contains a HQ file in mp3 format' done
➯
ShellCheck
finds bugs in your shell scripts.
ShellCheck
finds bugs in your shell scripts.
You can
cabal
,
apt-get
,
yum
or
brew install
it locally right now.
Paste a script to try it out:
📄
Your Editor (
Ace
– loading 800kb of JS
)
▼
▲
Load an example
(?)
📄
Your Terminal
If you paste a script in the editor above, this window will show shellcheck output.
ShellCheck is...
GPLv3
: free as in freedom
available on
GitHub
already packaged for your
distro or package manager
supported as an
integrated linter
in major editors
available in
CodeClimate
and
Codacy
to auto-check your GitHub repo
written in Haskell, if you're into that sort of thing.
Sounds awesome?
Read more about it
on the
GitHub page
!