File: check-whitespace.sh

package info (click to toggle)
telepathy-qt 0.9.7-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,000 kB
  • sloc: cpp: 74,497; xml: 34,294; ansic: 20,741; python: 3,983; sh: 118; makefile: 18
file content (17 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (71)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

fail=0

if grep -n ' $' "$@"
then
  echo "^^^ The above files contain unwanted trailing spaces"
  fail=1
fi

if grep -n '	' "$@"
then
  echo "^^^ The above files contain tabs"
  fail=1
fi

exit $fail