Skip to content

Commit 988d23a

Browse files
committed
Use uniform find commands
1 parent aeaea85 commit 988d23a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check_samples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
- name: Check Executable Bit
2727
run: |
28-
EXECUTABLE_BIT=$(find . -not -type d -executable)
28+
EXECUTABLE_BIT=$(find . -not -path '*/\.*' -type f -executable)
2929
EXECUTABLE_BIT_COUNT=$(echo "${EXECUTABLE_BIT}" | wc -w)
3030
if (( EXECUTABLE_BIT_COUNT > 0 )); then
3131
echo "The following files have executable permissions (not allowed):"
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Check Line Endings
3737
run: |
38-
CRLF_ENDINGS=$(find . -not -type d -exec file "{}" ";" | grep CRLF || true)
38+
CRLF_ENDINGS=$(find . -not -path '*/\.*' -type f -exec file "{}" ";" | grep CRLF || true)
3939
CRLF_ENDINGS_COUNT=$(echo "${CRLF_ENDINGS}" | wc -w)
4040
if (( CRLF_ENDINGS_COUNT > 0 )); then
4141
echo "The following files have CRLF line endings (not allowed):"

0 commit comments

Comments
 (0)