mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
Use uniform find commands
This commit is contained in:
parent
aeaea85520
commit
988d23a03f
1 changed files with 2 additions and 2 deletions
4
.github/workflows/check_samples.yml
vendored
4
.github/workflows/check_samples.yml
vendored
|
@ -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):"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue