- ShellCheck, a static analysis tool for shell scripts
https://github.com/koalaman/shellcheck
- https://steinbaugh.com/posts/posix.html lists some
- => https://steinbaugh.com/posts/posix.html#conditional-expressions
- => https://steinbaugh.com/posts/posix.html#parameter-expansion
check-scripts:
# Fail if any of these files have warnings
shellcheck myscripts/*.sh
or this on your CI (here : .travis.yml )script:
# Fail if any of these files have warnings
- shellcheck myscripts/*.sh
Aucun commentaire:
Enregistrer un commentaire