1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 17:24:45 +00:00

fix: Remove local declaration for scan_pids and scan_temps to ensure accessibility by the cleanup_scan trap.

This commit is contained in:
Tw93
2025-12-20 22:30:32 +08:00
parent fb49818828
commit d747ff43d3

View File

@@ -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