On Mon, Sep 30, 2013 at 8:17 PM, Manoj Thakkar < "> > wrote:The shell script always completes successfully because the last
> Hi All,
>
> I have written this chef recipe below,
>
> This is what i expect/require
>
> * The bash resource shall fail is the shell script i am running below fails,
> * the cookbook file should not say up to date if the bash script below fail
command, echo, works. You probably want to put...
"set -e"
... at the beginning which will case bash to exit when it firsts
encounters an error.
--
Andy Gale
http://andy-gale.com
http://twitter.com/andygale
Archive powered by MHonArc 2.6.16.