Continue past dependency ordering diffs.
We now guard against diff returning non-zero (which it does when it discovers changes). This allows dib-lint runs to continue past the point of displaying a dependency ordering nit. Change-Id: Ib7801597400d6d87146181935922c8832baf5aaa
This commit is contained in:
parent
9fae41c898
commit
f4a2eb6ef3
@ -89,8 +89,7 @@ for i in $(find elements -type f); do
|
|||||||
SORTED=${TMPDIR}/element-deps.sorted
|
SORTED=${TMPDIR}/element-deps.sorted
|
||||||
grep -v '^#' $i > ${UNSORTED}
|
grep -v '^#' $i > ${UNSORTED}
|
||||||
sort ${UNSORTED} > ${SORTED}
|
sort ${UNSORTED} > ${SORTED}
|
||||||
diff -c ${UNSORTED} ${SORTED}
|
if [ -n "$(diff -c ${UNSORTED} ${SORTED})" ]; then
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
error "$i is not sorted alphabetically"
|
error "$i is not sorted alphabetically"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user