10 lines
355 B
PowerShell
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'
|