Gitiles
Code Review
Sign In
gerrit.omnirom.org
/
android_system_sepolicy
/
refs/heads/android-16
/
.
/
tools
/
whitespace.sh
blob: 5fb4a2f4e1d74706dd6dc38380a6fc97c2700b7e [
file
] [
log
] [
blame
]
Nick Kralevich
16b7f0a
2016-12-09 20:35:34 -0800
[
diff
] [
blame
]
1
#!/bin/bash
2
3
RESULT
=
0
4
5
for
i
in
"$@"
;
do
6
a
=
"`tail -c 1 "
$i
"`"
7
if
[
"$a"
!=
""
];
then
8
echo
"$i does not have a trailing newline"
1
>&
2
9
RESULT
=-
1
10
fi
11
done
12
13
exit $RESULT