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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user