mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
Annotate CRLF
This commit is contained in:
parent
75218de62a
commit
39a4e158f8
1 changed files with 3 additions and 2 deletions
5
.github/workflows/check_samples.yml
vendored
5
.github/workflows/check_samples.yml
vendored
|
@ -40,8 +40,9 @@ jobs:
|
|||
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):"
|
||||
echo "${CRLF_ENDINGS}"
|
||||
for i in ${CRLF_ENDINGS}; do
|
||||
echo "::error file=${i},line=1,title=Line Endings::This file has CRLF (Windows) line endings, which is not allowed"
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue