shellcheck 脚本lints

最后更新于:2022-04-02 03:07:36

[TOC] ## 概述 - 对脚本进行分析纠错 - 可用于持续集成中的脚本检测 - 也可用于命令行的直接检测 ## 示例 ### window ``` > choco install shellcheck > shellcheck *.sh ``` ### Makefile ``` check-scripts: # Fail if any of these files have warnings shellcheck myscripts/*.sh ``` ## #Travis CI .travis.yml ``` script: # Fail if any of these files have warnings - shellcheck myscripts/*.sh ```
';