Skip lines starting with a comment or whitespace.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2017-05-25 15:54:03 +00:00
parent 8545cf0a59
commit 579bf08516
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50283

View file

@ -56,6 +56,12 @@ while [ "$x" != "$lastline" ]; do
wol_l=$x;
word_on_line;
if [ "$last" ]; then
echo "${wol_w}" | grep -Eq "^[0-9]+:(<\!--| )"
skip=$?
if [ ${skip} -eq 0 ]; then
last=
continue
fi
if [ "$last" = "$wol_w" ]; then
echo "Duplicate \"$last\" (l. $x).";
exit 1;