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: bash shell logic #2240

Merged
merged 2 commits into from
Oct 28, 2024
Merged

fix: bash shell logic #2240

merged 2 commits into from
Oct 28, 2024

Conversation

jleach
Copy link
Member

@jleach jleach commented Oct 28, 2024

Rework the chained command so that only if the grep fails it will continue. Grep will return "1" if no match is found which cases the pipe to fail. It should continue so that wc can return 0 count.

Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
Copy link

@jleach jleach enabled auto-merge (squash) October 28, 2024 17:26
@jleach jleach merged commit e09589f into main Oct 28, 2024
15 checks passed
@jleach jleach deleted the fix/better-shell-cmd branch October 28, 2024 17:42
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