From 988d23a03f6db9b8b9cf2879cecdb4fa087becc0 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Tue, 5 Oct 2021 14:28:44 -0500 Subject: [PATCH] Use uniform find commands --- .github/workflows/check_samples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index bcba90c..af4c79b 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -25,7 +25,7 @@ jobs: - name: Check Executable Bit run: | - EXECUTABLE_BIT=$(find . -not -type d -executable) + EXECUTABLE_BIT=$(find . -not -path '*/\.*' -type f -executable) EXECUTABLE_BIT_COUNT=$(echo "${EXECUTABLE_BIT}" | wc -w) if (( EXECUTABLE_BIT_COUNT > 0 )); then echo "The following files have executable permissions (not allowed):" @@ -35,7 +35,7 @@ jobs: - name: Check Line Endings run: | - CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF || true) + CRLF_ENDINGS=$(find . -not -path '*/\.*' -type f -exec file "{}" ";" | grep CRLF || true) CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w) if (( CRLF_ENDINGS_COUNT > 0 )); then echo "The following files have CRLF line endings (not allowed):"