From 27a533d52bc2a644a2bf8e1b4f984ec34b7e2911 Mon Sep 17 00:00:00 2001 From: Filip Bucek Date: Fri, 8 Nov 2019 11:14:59 +0100 Subject: [PATCH] fixing check script for lineendings --- .gitlab-ci.yml | 1 - scripts/check.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 093af4b..a101602 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,6 @@ stages: - build - test -- quality # ######## # Build diff --git a/scripts/check.sh b/scripts/check.sh index 2f5dc1d..646d1e1 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -10,7 +10,7 @@ cd $SOURCE_DIR info "Checking line ending" -RESULT=$( find . -not -type d -exec file "{}" ";" | grep "ASCII text, with CRLF" | cat) +RESULT=$( find . -not -type d ! -path '.git' -exec file "{}" ";" | grep "ASCII text, with CRLF" | cat ) if [ ! -z "$RESULT" ]; then echo "----------------------------------"