Skip to content
Snippets Groups Projects
Commit ff7a10ae authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "Block files without trailing newlines" am: 9f1e2b53 am: 4c4a3058

am: c1a10d44

Change-Id: Ie60cf5b850e948a9be352410c606d34561f4ea82
parents 3987a048 c1a10d44
Branches
Tags
No related merge requests found
[Hook Scripts]
whitespace = tools/whitespace.sh ${PREUPLOAD_FILES}
#!/bin/bash
RESULT=0
for i in "$@"; do
a="`tail -c 1 "$i"`"
if [ "$a" != "" ]; then
echo "$i does not have a trailing newline" 1>&2
RESULT=-1
fi
done
exit $RESULT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment