Linux folks:<div dir="auto"><br></div><div dir="auto">Does anyone have a bash function (not a separate script) to check the exit status of the passed in  pipeline or passed in exit status, print out the passed in error message, and exit the script if the exit status indicates failure?</div><div dir="auto"><br></div><div dir="auto">Thanks!</div><div dir="auto"><br></div><div dir="auto">Should be fairly easy to write?</div><div dir="auto"><br></div><div dir="auto">John </div>