From d747ff43d3090124b3d873ce2aca244b4eb9a21d Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 20 Dec 2025 22:30:32 +0800 Subject: [PATCH] fix: Remove local declaration for `scan_pids` and `scan_temps` to ensure accessibility by the `cleanup_scan` trap. --- lib/clean/project.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/clean/project.sh b/lib/clean/project.sh index eec288f..8837af3 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -385,8 +385,9 @@ clean_project_artifacts() { local -a recently_modified=() # Set up cleanup on interrupt - local scan_pids=() - local scan_temps=() + # Note: Declared without 'local' so cleanup_scan trap can access them + scan_pids=() + scan_temps=() # shellcheck disable=SC2329 cleanup_scan() { # Kill all background scans