/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Tools/ezEditor/Localization/ValidateLinks.ps1
23 строки
552 B
Jan Krassnigg
Fixed that GameObject references couldn't be exposed as properties anymore (#1127)
18 дек 2023, 22:15
Не верифицирован
18 дек 2023, 22:15
3490c8c
Код
Авторство
О чём код?
$Files = (Get-ChildItem . -Include *.txt -Recurse).fullname foreach ($File in $Files) { Write-Host "Validating URLs in file '$File'" foreach ($line in Get-Content $File) { if ($line -match "https:.*.html") { $url = $Matches[0] $error.Clear() $time = Measure-Command { Invoke-WebRequest -Uri $url } 2>$null if ($error.Count -eq 0) { } else { Write-Host " Invalid URL: '$url'" } } } } Write-Host "Done."