Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- In case you have problems with svn commit failing
- with error about non-LF characters in properties,
- you can run this script to easily find those files
- #>
- function Check-0x0d($file)
- {
- $c = Get-Content $file.fullname -Encoding Byte
- for ($i=0; $i -lt $c.length; $i++)
- {
- if ($c[$i] -eq 0x0d)
- {
- return $true
- }
- }
- return $false
- }
- ls -Path .\ -Include dir-props -Force -Recurse | where {Check-0x0d $_} | %{$_.fullname}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement