ShellCheck


finds bugs in your shell scripts.
You can cabal, apt, dnf, pkg or brew install it locally right now.
Paste a script to try it out:
📄
Your Editor (Ace – loading 800kb of JS)
▼
 
▲
#!/bin/bash
var="$1"

if [ -n $var ]
then
  echo " -n says Not Empty"
else
  echo " -n says Empty"
fi

if [ -z $var ]
then
  echo " -z says Empty"
else
  echo " -z says Not Empty"
fi

📄
ShellCheck Output
If you paste a script in the editor above, this window will show shellcheck output.

ShellCheck is...

A special thanks to: Gitpod • BashSupport Pro • Route4Me • Siemens • per1234 • cavcrosby • dcminter • photostructure • Cronitor • steve-chavez • ChrLau • cjgibson • Celebian • LLC.org loves open source • BestKru

Wiki Sitemap