diff options
Diffstat (limited to '.tools/newlines.sh')
-rwxr-xr-x | .tools/newlines.sh | 12 |
1 files changed, 8 insertions, 4 deletions
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; + |