Fix 'local' used outside function context

Removed 'local' keyword from colored_warnings variable assignment
in the main script body. The 'local' keyword can only be used
inside functions in bash.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 19:53:22 -05:00
parent 7db30a7bbf
commit fbd9965fb1

View File

@@ -1020,7 +1020,7 @@ for bay in $all_bays; do
colored_health="$(colorize_health "$health")"
# Colorize warnings if present
local colored_warnings="${warnings:--}"
colored_warnings="${warnings:--}"
if [[ "$USE_COLOR" == true && -n "$warnings" ]]; then
colored_warnings="${COLOR_YELLOW}${warnings}${COLOR_RESET}"
fi