Skip to content

treat all non-zero exit status as error#21

Closed
tomeichlersmith wants to merge 3 commits intoFauconFan:masterfrom
tomeichlersmith:18-check-exit-status-all-zero
Closed

treat all non-zero exit status as error#21
tomeichlersmith wants to merge 3 commits intoFauconFan:masterfrom
tomeichlersmith:18-check-exit-status-all-zero

Conversation

@tomeichlersmith
Copy link
Copy Markdown
Contributor

This is an alternative solution to #19 and resolves #18 .

Instead of introducing new (perhaps clunky) syntax, cmdrun just treats all non-zero exit codes as errors and injects a markdown message into the book describing this to the user. Simply appending || true (like in the diff example) can inform cmdrun that your command is intentional and should be allowed to produce output for the book.

@tomeichlersmith
Copy link
Copy Markdown
Contributor Author

Closing this because #18 was merged.

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

Successfully merging this pull request may close these issues.

Fail on non-zero exit status

1 participant