This post originated from an RSS feed registered with Java Buzz
by Jason Sankey.
Original Post: Bash Tip: Exit on Error
Feed Title: a little madness
Feed URL: http://www.alittlemadness.com/feed/
Feed Description: A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis
Back in my post Your Next Programming Language I mentioned I would post occassional tips about bash scripting. As soon as I started writing my next script, it occured to me: the first thing I always do when writing a new bash script is set the errexit option:
set -e
This option makes your script bail [...]