From bfda52ed79c5648c8956d530f4c20393e7377b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Wed, 1 Dec 2021 11:07:17 +0100 Subject: [PATCH] Fix number of invalid domains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: abesnier Signed-off-by: Christian König --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index bb4f4e4b..d66b3b83 100755 --- a/gravity.sh +++ b/gravity.sh @@ -516,7 +516,7 @@ parseList() { # Find (up to) five domains containing invalid characters (see above) incorrect_lines="$(sed -e "/[^a-zA-Z0-9.\_-]/!d" "${src}" | head -n 5)" - local num_target_lines num_correct_lines num_invalid + local num_target_lines num_correct_lines # Get number of lines in source file num_lines="$(grep -c "^" "${src}")" # Get number of lines in destination file