You can do "set -x"  at the top of a script to stop the script on error

--
hudon
On Jan 16, 2014 10:39 PM, "Robert" <notifications@github.com> wrote:

> In vm-setup/command-harness.sh:
>
> > @@ -0,0 +1,36 @@
> > +#!/bin/bash
>
> Yeah, it checks every command to make sure it worked and stops with a
> helpful error message if one fails. Otherwise it would just try to execute
> all these invalid commands and break stuff.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Hudon/spike/pull/96/files#r8956607>
> .
>