Compare commits

..

1 Commits

View File

@ -378,7 +378,7 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do
repo_sync_time=$(date -d "@$(cat "${timestamp:?}")" '+%c')
fi
# If a directory usage summary exists, parse the size.
# If a directory usage summary exists and we're not skipping, parse the size.
if [[ -f ${dusum:?} ]] && ((${repo_skip:-0} == 0)); then
repo_size_kb=$(grep "$real_dir" "${dusum:?}" | awk '{print $1}')
if [[ -n $repo_size_kb ]]; then
@ -408,7 +408,12 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do
fi
done
# If we should skip this repo, continue to the next.
if ((${repo_skip:-0})); then
# Unset all vars for next repo.
unset repo_path repo_icon repo_title repo_size repo_size_kb \
repo_sync_time repo_description timestamp dusum section \
icon repo_skip disable_size_calc timestamp_file_stat
continue
fi