dib-lint: ensure file finish with a new line

git and the patch command expect file to end with a new line.

Change-Id: I783583b2a5a703007bf206ba56a1caa6fe15973e
This commit is contained in:
Gonéri Le Bouder 2014-05-02 18:15:42 +02:00
parent 3ae4edc276
commit 27e7aaefa6

View File

@ -83,5 +83,9 @@ for i in $(find elements -type f); do
fi
fi
fi
if [ "$(tail -c 1 $i)" != "" ]; then
echo "ERROR: No newline at end of file: $i"
fi
done
exit $rc