Skip to content


finds bugs in your shell scripts.

use or get/install it from here


shellcheck provides a diff output, so things can be automatically fixed with the patch command. but I guess this should be checked on a script-by-script basis.

check the script first:


read and try to understand the outputs, if it's just easy things like quoting variables you can patch the file automatically:

shellcheck -f diff | patch

or just show the diff output and review it:

shellcheck -f diff