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

1 Answer
1

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *