From c4d7f9924f9b783260a5fc20767520be7257cd35 Mon Sep 17 00:00:00 2001 From: kytv <kytv@mail.i2p> Date: Sat, 6 Sep 2014 22:14:06 +0000 Subject: [PATCH] checkcerts.sh: check for extraneous spaces (trying to catch the problem noted at http://zzz.i2p/topics/1663) --- tests/scripts/checkcerts.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/scripts/checkcerts.sh b/tests/scripts/checkcerts.sh index 55820a2133..0a0f698722 100755 --- a/tests/scripts/checkcerts.sh +++ b/tests/scripts/checkcerts.sh @@ -164,6 +164,14 @@ do else compute_dates fi + if grep '\s$' $i > /dev/null 2>&1; then + echo "********* Trailing whitespace found in file $i *********" + FAIL=1 + fi + if grep '^\s' $i > /dev/null 2>&1; then + echo "********* Leading whitespace found in file $i *********" + FAIL=1 + fi done if [ -n "$FAIL" ]; then -- GitLab