Merge "dib-lint: ignore blank lines in element ordering"
This commit is contained in:
commit
3412ced2f0
@ -96,10 +96,11 @@ for i in $(find elements -type f \
|
|||||||
if [ $(basename $i) = "element-deps" ]; then
|
if [ $(basename $i) = "element-deps" ]; then
|
||||||
UNSORTED=${TMPDIR}/element-deps.unsorted
|
UNSORTED=${TMPDIR}/element-deps.unsorted
|
||||||
SORTED=${TMPDIR}/element-deps.sorted
|
SORTED=${TMPDIR}/element-deps.sorted
|
||||||
grep -v '^#' $i > ${UNSORTED}
|
grep -v -e '^#' -e '^$' $i > ${UNSORTED}
|
||||||
sort ${UNSORTED} > ${SORTED}
|
sort ${UNSORTED} > ${SORTED}
|
||||||
if [ -n "$(diff -c ${UNSORTED} ${SORTED})" ]; then
|
if [ -n "$(diff -c ${UNSORTED} ${SORTED})" ]; then
|
||||||
error "$i is not sorted alphabetically"
|
error "$i is not sorted alphabetically"
|
||||||
|
diff -y ${UNSORTED} ${SORTED}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user