Enable DOS/Windows line-ending checks at patch-level
Change-Id: Iee7ba34e5228cb890606be574a8fd4b6738ed416
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
diff --git a/script/static-checks/static-checks.sh b/script/static-checks/static-checks.sh
index 6bae729..882e9e1 100755
--- a/script/static-checks/static-checks.sh
+++ b/script/static-checks/static-checks.sh
@@ -61,7 +61,12 @@
# Check line endings
-"$CI_ROOT"/script/static-checks/static-checks-coding-style-line-endings.sh
+if [ "$IS_CONTINUOUS_INTEGRATION" == 1 ]; then
+ "$CI_ROOT"/script/static-checks/static-checks-coding-style-line-endings.sh . patch
+else
+ "$CI_ROOT"/script/static-checks/static-checks-coding-style-line-endings.sh
+fi
+
if [ "$?" != 0 ]; then
echo "Line ending test: FAILURE"
((ERROR_COUNT++))