Home | History | Annotate | Download | only in tools
      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
     14