Skip lines starting with a comment or whitespace.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
8545cf0a59
commit
579bf08516
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50283
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue