From 2902ec85c95c4e10cc2f60bc2a3fb4d8c1c9fdd9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 17 Oct 2018 11:05:48 -0300 Subject: Try to fix this --- .tools/newlines.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.tools/newlines.sh') diff --git a/.tools/newlines.sh b/.tools/newlines.sh index c7a59bf2..32beda0d 100755 --- a/.tools/newlines.sh +++ b/.tools/newlines.sh @@ -6,6 +6,7 @@ aptget_update aptget_install dos2unix git-core export LOG1="newlines.log" +SIGNAL=0; rm ${LOG1} @@ -15,7 +16,7 @@ export RES=$(git diff --name-only) if [[ -n "${RES}" ]]; then echo "Wrong new lines detected in xml files:" git diff --name-only - exit 1 + SIGNAL=1; fi find -H . -type f -name "*.tmx" -exec dos2unix {} \; >>${LOG1} @@ -24,7 +25,7 @@ export RES=$(git diff --name-only) if [[ -n "${RES}" ]]; then echo "Wrong new lines detected in tmx files:" git diff --name-only - exit 1 + SIGNAL=1; fi @@ -34,7 +35,7 @@ export RES=$(git diff --name-only) if [[ -n "${RES}" ]]; then echo "Wrong new lines detected in md files:" git diff --name-only - exit 1 + SIGNAL=1; fi @@ -44,5 +45,8 @@ export RES=$(git diff --name-only) if [[ -n "${RES}" ]]; then echo "Wrong new lines detected in conf files:" git diff --name-only - exit 1 + SIGNAL=1; fi + +exit $SIGNAL; + -- cgit v1.2.3-60-g2f50