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

FIX Handle zero-match #24

Merged

Conversation

emteknetnz
Copy link
Member

Issue #11

If grep has zero results, it results in an exit code of 1 which halts the workflow

@emteknetnz emteknetnz mentioned this pull request Jul 1, 2022
40 tasks
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. : is effectively an alias for true so not super readable but the comment makes up for that.

Have tested and confirmed that if any of the greps in this command exit 1, and therefore we use : as the output of that segment instead, the whole command will exit 0 with no output. So no worries with this as a way to stop exiting 1.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@GuySartorelli GuySartorelli merged commit 04ec7fa into silverstripe:1.1 Jul 3, 2022
@GuySartorelli GuySartorelli deleted the pulls/1.1/zero-match branch July 3, 2022 22:18
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.

2 participants