bash shell script exit on error. There are any references about bash shell script exit on error in here. you can look below.