检查 Shell 脚本正确与否

bash -n script_name.sh

-n选项只做语法检查,而不执行脚本

posted @ 2021-01-22 22:21  汐木  阅读(95)  评论(0编辑  收藏  举报