fix: allow PowerShell CRLF line endings
This commit is contained in:
@@ -23,6 +23,10 @@ root="$(cd "$root" && pwd)"
|
||||
offenders=()
|
||||
|
||||
while IFS= read -r -d '' file; do
|
||||
case "$file" in
|
||||
*.ps1) continue ;;
|
||||
esac
|
||||
|
||||
if LC_ALL=C grep -Il $'\r' "$file" >/dev/null; then
|
||||
offenders+=("${file#"$root"/}")
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user