mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-14 12:15:48 +02:00
Check emoji-ordering.txt for carriage return on build
This commit is contained in:
parent
be9ea7f64a
commit
97928ecd84
@ -11,6 +11,16 @@ function Rewrite-File{
|
||||
Write-Host "Processed" $file.FullName.Substring($dir.Length)
|
||||
}
|
||||
|
||||
ForEach($file in Get-ChildItem -Include emoji-ordering.txt -Recurse){
|
||||
Write-Host "Checking" $file.FullName.Substring($dir.Length)
|
||||
$data = Get-Content -Path $file.FullName -Raw
|
||||
|
||||
if ($data.Contains("`r")){
|
||||
Write-Host "Text files cannot contain carriage return"
|
||||
Exit 1
|
||||
}
|
||||
}
|
||||
|
||||
ForEach($file in Get-ChildItem -Include *.js -Exclude configuration.default.js -Recurse){
|
||||
$lines = Get-Content -Path $file.FullName
|
||||
$lines = $lines | % { $_.TrimStart() }
|
||||
|
Loading…
Reference in New Issue
Block a user