summaryrefslogtreecommitdiff
path: root/.tools/newlines.sh
diff options
context:
space:
mode:
Diffstat (limited to '.tools/newlines.sh')
-rwxr-xr-x.tools/newlines.sh30
1 files changed, 3 insertions, 27 deletions
diff --git a/.tools/newlines.sh b/.tools/newlines.sh
index 32beda0d..1c06625c 100755
--- a/.tools/newlines.sh
+++ b/.tools/newlines.sh
@@ -11,39 +11,15 @@ SIGNAL=0;
rm ${LOG1}
find -H . -type f -name "*.xml" -exec dos2unix {} \; >${LOG1}
-
-export RES=$(git diff --name-only)
-if [[ -n "${RES}" ]]; then
- echo "Wrong new lines detected in xml files:"
- git diff --name-only
- SIGNAL=1;
-fi
-
find -H . -type f -name "*.tmx" -exec dos2unix {} \; >>${LOG1}
-
-export RES=$(git diff --name-only)
-if [[ -n "${RES}" ]]; then
- echo "Wrong new lines detected in tmx files:"
- git diff --name-only
- SIGNAL=1;
-fi
-
-
find -H . -type f -name "*.md" -exec dos2unix {} \; >>${LOG1}
-
-export RES=$(git diff --name-only)
-if [[ -n "${RES}" ]]; then
- echo "Wrong new lines detected in md files:"
- git diff --name-only
- SIGNAL=1;
-fi
-
-
find -H . -type f -name "*.conf" -exec dos2unix {} \; >>${LOG1}
export RES=$(git diff --name-only)
if [[ -n "${RES}" ]]; then
- echo "Wrong new lines detected in conf files:"
+ printf "\n\n-----------------------------------------------------\n\n";
+ echo "Wrong new lines detected in several files files:"
+ printf "\n\n";
git diff --name-only
SIGNAL=1;
fi