Skip to content

Commit bd8a1b5

Browse files
Biksu Okusiclaude
andcommitted
fix(check): add check to commands requiring BCS_FILE
The check command with --tier complete was failing with "cat: '': No such file or directory" because BCS_FILE wasn't being set. The check command was missing from the case statement that initializes BCS_FILE for commands that need it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d38ff26 commit bd8a1b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bcs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4875,11 +4875,11 @@ case "$subcommand" in
48754875
;;
48764876
esac
48774877

4878-
# Commands that require BCS_FILE to exist: display, search, sections
4878+
# Commands that require BCS_FILE to exist: display, search, sections, check
48794879
# Other commands work directly with data/ directory or don't need the standard file
48804880
declare -- BCS_FILE='' install_share="${BCS_DIR%/bin}/share/yatti/bash-coding-standard"
48814881
case "$subcommand" in
4882-
display|search|sections)
4882+
display|search|sections|check)
48834883
# These commands require the standard file
48844884
BCS_FILE=$(find_bcs_file "${BCS_PATH%/*}") || {
48854885
error "BASH-CODING-STANDARD.md not found"

0 commit comments

Comments
 (0)