Skip to content

ci: fix duplicate zero in error analysis output#51

Merged
adrianreber merged 1 commit intomainfrom
2026-03-28-duplicate
Apr 1, 2026
Merged

ci: fix duplicate zero in error analysis output#51
adrianreber merged 1 commit intomainfrom
2026-03-28-duplicate

Conversation

@adrianreber
Copy link
Copy Markdown
Member

grep -c already outputs 0 when no matches are found, but returns exit code 1 which triggered the '|| echo "0"' fallback, producing a duplicate 0 on a separate line. This broke sourcing the INFO file in a shell. Replace with '|| true' to suppress the exit code without adding extra output.

Generated with Claude Code (https://claude.ai/code)

grep -c already outputs 0 when no matches are found, but returns
exit code 1 which triggered the '|| echo "0"' fallback, producing
a duplicate 0 on a separate line. This broke sourcing the INFO
file in a shell. Replace with '|| true' to suppress the exit
code without adding extra output.

Generated with Claude Code (https://claude.ai/code)

Signed-off-by: Adrian Reber <areber@redhat.com>
@adrianreber adrianreber merged commit f7a497d into main Apr 1, 2026
7 checks passed
@adrianreber adrianreber deleted the 2026-03-28-duplicate branch April 1, 2026 15:30
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.

1 participant