summaryrefslogtreecommitdiff
path: root/.tools/jobs/newlines.sh
blob: 23309f70d198dfbd8b2d43b8d2d7a634156deef4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

find -H . -type f -name "*.txt" -o -name "*.conf" -exec dos2unix {} \;

export RES=$(git diff --name-only)
if [[ -n "${RES}" ]]; then
    echo "Wrong new lines detected in files:"
    git diff --name-only
    exit 1
fi