From fbd9965fb1f8d00e41391aa5ce8efca0489eb021 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 5 Feb 2026 19:53:22 -0500 Subject: [PATCH] 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 --- driveAtlas.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driveAtlas.sh b/driveAtlas.sh index ca21c82..06ac9bd 100644 --- a/driveAtlas.sh +++ b/driveAtlas.sh @@ -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