mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 20:15:07 +00:00
fix(clean): resolve unbound variable 'mount_points[@]' error in empty array case (#511)
This commit is contained in:
@@ -390,7 +390,7 @@ clean_xcode_simulator_runtime_volumes() {
|
|||||||
local unused_count=0
|
local unused_count=0
|
||||||
for candidate in "${sorted_candidates[@]}"; do
|
for candidate in "${sorted_candidates[@]}"; do
|
||||||
local status="UNUSED"
|
local status="UNUSED"
|
||||||
if _sim_runtime_is_path_in_use "$candidate" "${mount_points[@]}"; then
|
if [[ ${#mount_points[@]} -gt 0 ]] && _sim_runtime_is_path_in_use "$candidate" "${mount_points[@]}"; then
|
||||||
status="IN_USE"
|
status="IN_USE"
|
||||||
in_use_count=$((in_use_count + 1))
|
in_use_count=$((in_use_count + 1))
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user