Compare commits
1 Commits
cbd6c904f9
...
2a3eb4b7f5
Author | SHA1 | Date | |
---|---|---|---|
2a3eb4b7f5 |
@ -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 and we're not skipping, parse the size.
|
||||
# If a directory usage summary exists, 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,12 +408,7 @@ 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user