fix: replace raw echo with output helpers in check#706
Merged
Conversation
69c777e to
48513bc
Compare
Owner
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
48513bc to
c107189
Compare
dnyw4l3n13
reviewed
Jun 24, 2026
dnyw4l3n13
reviewed
Jun 24, 2026
dnyw4l3n13
reviewed
Jun 24, 2026
dnyw4l3n13
reviewed
Jun 24, 2026
dnyw4l3n13
reviewed
Jun 24, 2026
Collaborator
AI Review CompleteAll review rounds and security review passed. Auto-merge enabled. Changes made during reviewCode Review (3 rounds):
Security Review: |
success() was defined but never called, leaving the script silent on successful completion — indistinguishable from mid-run termination. Prompt: fix each code-review finding in its own commit
…ogress steps The old hint() function emitted ' ? CHECK: ...' making advisories visually distinct from progress steps. Replacing with info() collapses them to the same format. Prefixing with 'Hint:' restores distinction. Prompt: fix each code-review finding in its own commit
for FILE in \$FILES word-splits on \$IFS, breaking paths containing
spaces. mapfile -t + \"${FILES[@]}\" handles any filename safely.
Prompt: fix each code-review finding in its own commit
success "All checks passed" fired even with no files found, giving a false-positive result when BASEDIR was wrong or no scripts existed. Prompt: fix each code-review finding in its own commit
die() now writes to stderr while info "* \$FILE" writes to stdout.
CI systems capturing them separately lose filename context. Adding
\${FILE} to every die message in the loop restores that context.
Prompt: fix each code-review finding in its own commit
The original entry only mentioned output helper replacement; two correctness fixes (mapfile word-splitting safety and empty-files guard) were omitted and warranted their own entries. Prompt: fix each code-review finding in its own commit
2b9127a to
abfe83b
Compare
credfeto
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
die,testing,hint, andfailfunctions incheckwith the canonicaldie,info, andsuccesshelpers from shell-scripts.instructions.mdtesting()→info(),hint()→info(),fail()→die(), bareecho "Testing:"andecho "* $FILE"→info()excluded()function'secho "1"/echo "0"internal return values preserved unchanged#!/bin/bash(script uses=~and$BASH_REMATCH)Closes #619
Test plan
bash -n check— syntax cleanshellcheck check— lint clean