1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 15:39:42 +00:00

fix(apps): correct array initialization for matches in clean_orphaned_app_data

This commit is contained in:
tw93
2026-02-04 17:34:04 +08:00
parent 8861fe6b5f
commit cb19899eaa

View File

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