X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=shellcheck%2FREADME.md;fp=shellcheck%2FREADME.md;h=98e2d17048913e055779b7f9e8484d31c524ee11;hb=7068584ef56fb51bb39c18d5afeb0d31b7bac757;hp=0000000000000000000000000000000000000000;hpb=79818b7628891a8e51fefe2704869438f7e5aebc;p=webi-installers%2F.git diff --git a/shellcheck/README.md b/shellcheck/README.md new file mode 100644 index 0000000..98e2d17 --- /dev/null +++ b/shellcheck/README.md @@ -0,0 +1,41 @@ +--- +title: ShellCheck +homepage: https://github.com/koalaman/shellcheck +tagline: | + ShellCheck - A shell script static analysis tool +--- + +To update or switch versions, run `webi shellcheck@stable`, or `@vx.y.z` for a +specific version. + +## Cheat Sheet + +> shellcheck catches rookie mistakes (and old-habits-die-hard mistakes) in bash + +### Run shellcheck in your terminal: + +```bash +shellcheck yourscript +``` + + + +### To use shellcheck in a build or test suite: + +Simply include shellcheck in the process. + +```bash +check-scripts: + # Fail if any of these files have warnings + shellcheck myscripts/*.sh +``` + +