run "echo whatever; true"

Will always succeed no matter what exit status the first command yields.

run "echo whatever; false"

Will fail.

On Jan 21, 2009, at 9:24 AM, Gerhardus Geldenhuis 
<[email protected] 
 > wrote:

>
> Hi
> Is there a way to run different tasks based on the exit status of a
> run command? Also how can I "force" a task to fail or succeed, how is
> the failure/success of a task determined/defined.
>
> Regards
> >

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to