File: check-style.sh

package info (click to toggle)
dpb 0.9.9
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,344 kB
  • sloc: sh: 77; makefile: 19
file content (14 lines) | stat: -rwxr-xr-x 203 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e
set -o pipefail

which file >/dev/null

if file *.nw | grep -qs "with CRLF"; then
   echo "Error: Windows line endings detected:"
   file *.nw | grep "with CRLF"
   exit 1
fi

exit 0