File: check-whitespace.sh

package info (click to toggle)
telepathy-salut 0.3.3-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,344 kB
  • ctags: 4,342
  • sloc: ansic: 39,187; sh: 9,058; python: 1,243; xml: 736; makefile: 556
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