Compare commits
1 Commits
2a3eb4b7f5
...
cbd6c904f9
Author | SHA1 | Date | |
---|---|---|---|
cbd6c904f9 |
@ -378,7 +378,7 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do
|
|||||||
repo_sync_time=$(date -d "@$(cat "${timestamp:?}")" '+%c')
|
repo_sync_time=$(date -d "@$(cat "${timestamp:?}")" '+%c')
|
||||||
fi
|
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
|
if [[ -f ${dusum:?} ]] && ((${repo_skip:-0} == 0)); then
|
||||||
repo_size_kb=$(grep "$real_dir" "${dusum:?}" | awk '{print $1}')
|
repo_size_kb=$(grep "$real_dir" "${dusum:?}" | awk '{print $1}')
|
||||||
if [[ -n $repo_size_kb ]]; then
|
if [[ -n $repo_size_kb ]]; then
|
||||||
@ -408,7 +408,12 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# If we should skip this repo, continue to the next.
|
||||||
if ((${repo_skip:-0})); then
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user