Files
inquiry_robot/deploy/_remote_check_hint.ps1
T

10 lines
355 B
PowerShell

$ErrorActionPreference = 'Continue'
$hits = Select-String -Path 'E:\wwwroot\admin\current\assets\*.js' -Pattern '数据进入主账' -SimpleMatch -ErrorAction SilentlyContinue
if ($hits) {
Write-Output 'HINT_STILL_PRESENT'
$hits | Select-Object -First 3 | ForEach-Object { $_.Filename }
} else {
Write-Output 'HINT_GONE'
}
Write-Output 'CHECK_DONE'