Call it the received number of domains instead of the imported number as importing does only happen a bit later. Only show the number of invalid domains if there are invalid domains.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/3150/head
DL6ER 4 years ago
parent 1e8bfd33f5
commit 3dd05606ca
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

@ -431,7 +431,11 @@ parseList() {
num_correct_lines="$(( num_target_lines-total_num ))"
total_num="$num_target_lines"
num_invalid="$(( num_lines-num_correct_lines ))"
echo " ${INFO} Imported ${num_correct_lines} of ${num_lines} domains, ${num_invalid} domains invalid"
if [[ "${num_invalid}" -eq 0 ]]; then
echo " ${INFO} Received ${num_lines} domains"
else
echo " ${INFO} Received ${num_lines} domains, ${num_invalid} domains invalid!"
fi
# Display sample of invalid lines if we found some
if [[ -n "${incorrect_lines}" ]]; then

Loading…
Cancel
Save