set -e或 -x 用法

shell:

	help set: 查看bash的set命令的用法
	set -x:       -x  Print commands and their arguments as they are executed. 即把执行的脚本输出到stdout
	set -e:   -e  Exit immediately if a command exits with a non-zero status. 即报错立马退出

猜你喜欢

转载自blog.csdn.net/wc996789331/article/details/114234550