Possible Duplicate:
Automatic exit from bash shell script on error
How can I have bash stop on the first command failure, without putting stuff like this all through my code?
some_prog || exit 1
some_other_prog || exit 1
Possible Duplicate:
Automatic exit from bash shell script on error
How can I have bash stop on the first command failure, without putting stuff like this all through my code?
some_prog || exit 1
some_other_prog || exit 1