From cb19899eaab28d794d33f0d0554c9525e422d0fc Mon Sep 17 00:00:00 2001 From: tw93 Date: Wed, 4 Feb 2026 17:34:04 +0800 Subject: [PATCH] fix(apps): correct array initialization for matches in clean_orphaned_app_data --- lib/clean/apps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/clean/apps.sh b/lib/clean/apps.sh index adedcae..11d064c 100644 --- a/lib/clean/apps.sh +++ b/lib/clean/apps.sh @@ -291,7 +291,9 @@ clean_orphaned_app_data() { local iteration_count=0 local old_ifs=$IFS IFS=$'\n' - local -a matches=($item_path) + local -a matches=() + # shellcheck disable=SC2206 + matches=($item_path) IFS=$old_ifs if [[ ${#matches[@]} -eq 0 ]]; then continue