mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 16:20:14 +00:00
fix(apps): correct array initialization for matches in clean_orphaned_app_data
This commit is contained in:
@@ -291,7 +291,9 @@ clean_orphaned_app_data() {
|
|||||||
local iteration_count=0
|
local iteration_count=0
|
||||||
local old_ifs=$IFS
|
local old_ifs=$IFS
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
local -a matches=($item_path)
|
local -a matches=()
|
||||||
|
# shellcheck disable=SC2206
|
||||||
|
matches=($item_path)
|
||||||
IFS=$old_ifs
|
IFS=$old_ifs
|
||||||
if [[ ${#matches[@]} -eq 0 ]]; then
|
if [[ ${#matches[@]} -eq 0 ]]; then
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user