xref: /aosp_15_r20/system/sepolicy/tools/whitespace.sh (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1#!/bin/bash
2
3RESULT=0
4
5for 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
11done
12
13exit $RESULT
14