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:
parent
3ae4edc276
commit
27e7aaefa6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue