From f4a2eb6ef3a7e65d23527842eb31f45daeb007c6 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 26 Nov 2014 20:23:15 +0000 Subject: [PATCH] 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 --- bin/dib-lint | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/dib-lint b/bin/dib-lint index cf8a5b3a4..407390c28 100755 --- a/bin/dib-lint +++ b/bin/dib-lint @@ -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