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
@ -83,5 +83,9 @@ for i in $(find elements -type f); do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(tail -c 1 $i)" != "" ]; then
|
||||||
|
echo "ERROR: No newline at end of file: $i"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
exit $rc
|
exit $rc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user