Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be amazing to have commands executed on error #1187

Closed
frederikhors opened this issue May 16, 2022 · 4 comments
Closed

It would be amazing to have commands executed on error #1187

frederikhors opened this issue May 16, 2022 · 4 comments

Comments

@frederikhors
Copy link

It would be amazing to have commands executed on error.

@casey
Copy link
Owner

casey commented May 17, 2022

Can you give an example?

@frederikhors
Copy link
Author

If I'm executing a list of commands and one of them throws an error exiting from the recipe I would like to execute another recipe to - example - clean up some files.

@deadbaed
Copy link

I am also interested in this, my use case would be:

  • run recipe, get the exit status
  • if status is 0, dont do anything
  • if status is different than 0, run another recipe

@casey
Copy link
Owner

casey commented Oct 9, 2023

Check out #1582.

@casey casey closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants