diff --git a/bin/uninstall.sh b/bin/uninstall.sh index 2f83bc5..94cbf66 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -137,7 +137,7 @@ scan_applications() { done < <(command find "$app_dir" -name "*.app" -maxdepth 3 -print0 2> /dev/null) done - if [[ ${#app_data_tuples[@]:-0} -eq 0 ]]; then + if [[ ${#app_data_tuples[@]} -eq 0 ]]; then rm -f "$temp_file" printf "\r\033[K" >&2 echo "No applications found to uninstall." >&2 @@ -145,7 +145,7 @@ scan_applications() { fi # Pass 2: metadata + size in parallel (mdls is slow). local app_count=0 - local total_apps=${#app_data_tuples[@]:-0} + local total_apps=${#app_data_tuples[@]} local max_parallel max_parallel=$(get_optimal_parallel_jobs "io") if [[ $max_parallel -lt 8 ]]; then