我想在Bash脚本中引发错误,消息"Test cases Failed !!!".在Bash中如何做到这一点?
例如:
if [ condition ]; then raise error "Test cases failed !!!" fi
linux error-handling bash shell
bash ×1
error-handling ×1
linux ×1
shell ×1