set -e

set -e:执行出错不畏true则退出

 

#! /bin/bash

set -e

command11

command22

posted @ 2021-09-08 21:20  zxy_ang  阅读(44)  评论(0)    收藏  举报