bash -e

bash -e

脚本发生第一个错误时就中止脚本运行

原文地址:https://www.cnblogs.com/loongqiang/p/3488637.html