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:
Chris Jones 2014-11-26 20:23:15 +00:00
parent 9fae41c898
commit f4a2eb6ef3
1 changed files with 1 additions and 2 deletions

View File

@ -89,8 +89,7 @@ for i in $(find elements -type f); do
SORTED=${TMPDIR}/element-deps.sorted
grep -v '^#' $i > ${UNSORTED}
sort ${UNSORTED} > ${SORTED}
diff -c ${UNSORTED} ${SORTED}
if [ $? -ne 0 ]; then
if [ -n "$(diff -c ${UNSORTED} ${SORTED})" ]; then
error "$i is not sorted alphabetically"
fi
fi