summaryrefslogtreecommitdiff
path: root/.tools/jobs/newlines.sh
diff options
context:
space:
mode:
Diffstat (limited to '.tools/jobs/newlines.sh')
-rwxr-xr-x.tools/jobs/newlines.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.tools/jobs/newlines.sh b/.tools/jobs/newlines.sh
new file mode 100755
index 00000000..23309f70
--- /dev/null
+++ b/.tools/jobs/newlines.sh
@@ -0,0 +1,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