ignore file if missing on disk (#5)
This commit is contained in:
parent
e212d3e1c5
commit
40ebafc233
@ -60,6 +60,10 @@ function rebalance () {
|
|||||||
progress_percent=$(echo "scale=2; ${current_index}*100/${file_count}" | bc)
|
progress_percent=$(echo "scale=2; ${current_index}*100/${file_count}" | bc)
|
||||||
color_echo "${Cyan}" "Progress -- Files: ${current_index}/${file_count} (${progress_percent}%)"
|
color_echo "${Cyan}" "Progress -- Files: ${current_index}/${file_count} (${progress_percent}%)"
|
||||||
|
|
||||||
|
if [[ ! -f "${file_path}" ]]; then
|
||||||
|
color_echo "${Yellow}" "File is missing, skipping: ${file_path}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${passes_flag}" -ge 1 ]; then
|
if [ "${passes_flag}" -ge 1 ]; then
|
||||||
# check if target rebalance count is reached
|
# check if target rebalance count is reached
|
||||||
rebalance_count=$(get_rebalance_count "${file_path}")
|
rebalance_count=$(get_rebalance_count "${file_path}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user