Skip to content

Fail if sub-command fails #7

Description

@sveyret

Hi,
I have a long building process for a project in the middle of which I am using foreach-cli. I usually am AFK when this long building occurs and only look at the final result. If one of the build command fails, it makes the whole building fail.
But I recently discovered that my building was sometimes “silently” failing (well, not so silent, as there is a message), because if one of the sub-processes launched by foreach-cli is failing, foreach-cli itself stays successful.
Would that be possible to make foreach-cli return a non-zero value if one of the sub-process returns a non-zero value ? Maybe this behavior should be triggered using a command line flag…
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions