From 303e931fb513c561e5123a5ad7b221f0901bdf57 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 17 Oct 2018 11:13:04 -0300 Subject: Attempt to optimize newlines pipeline --- .tools/newlines.sh | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to '.tools') 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 -- cgit v1.2.3-60-g2f50