diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-10-17 11:13:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-10-17 11:13:04 -0300 |
commit | 303e931fb513c561e5123a5ad7b221f0901bdf57 (patch) | |
tree | 53502e0a8b170008d23af6752e808b8904cd9c40 /.tools | |
parent | 3cc7356e1d3cabbc753110963ee12639ee2c9d3a (diff) | |
download | art-303e931fb513c561e5123a5ad7b221f0901bdf57.tar.gz art-303e931fb513c561e5123a5ad7b221f0901bdf57.tar.bz2 art-303e931fb513c561e5123a5ad7b221f0901bdf57.tar.xz art-303e931fb513c561e5123a5ad7b221f0901bdf57.zip |
Attempt to optimize newlines pipeline
Diffstat (limited to '.tools')
-rwxr-xr-x | .tools/newlines.sh | 30 |
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 |