From 28ac53292b1d7c2b36803824c018d5bca98bdb47 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Tue, 20 Feb 2024 11:21:44 -0600 Subject: [PATCH] For mirrors with calc disabled, don't get prior calculated values --- mirror-file-generator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror-file-generator.sh b/mirror-file-generator.sh index 457bf89..7e1d76f 100644 --- a/mirror-file-generator.sh +++ b/mirror-file-generator.sh @@ -450,12 +450,12 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do export repo_icon # If repo size is undefined, check if an unknown repo directory size exists. - if [[ -z ${repo_size:-} ]]; then + if [[ -z ${repo_size:-} ]] && ((${disable_size_calc:-0} == 0)); then unknown_path="$dir_sizes_unknown_path/$mirror/$dir_name" # If we should update the directory usage sizes, do so. # shellcheck disable=SC2076 - if ((update_unknown_dir_size)) && ((${disable_size_calc:-0} == 0)) \ + if ((update_unknown_dir_size)) \ && [[ ! " ${repo_sizes_updated[*]} " =~ " ${real_dir} " ]]; then # Add to list of repos with updated sizes. repo_sizes_updated+=("$real_dir")