zhaoyu@home:~$

linux-shell脚本

set

  • set -e:当发生错误时,退出脚本
  • set +e :当发生错误时,继续执行。