Files
BetterDesk/scripts/check-wiki-staleness.ps1
UNITRONIX 868aa5b22f docs: slim README, refresh wiki for 3.5.x, add Privacy
Replace the monolithic README with a short landing page, align wiki
with current 3.5.x product facts, add PRIVACY.md, Monitoring and
Unattended/WoL guides, and park historical audits under docs/archive.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-06 12:25:34 +02:00

34 lines
846 B
PowerShell

# Soft check for Windows (PowerShell)
# Usage: powershell -File scripts/check-wiki-staleness.ps1
$ErrorActionPreference = 'Stop'
$wiki = Join-Path $PSScriptRoot '..\docs\wiki'
$fail = $false
$patterns = @(
'3\.3\.132',
'v2\.4\.0',
'mac_address',
'Node\.js Client API',
'/api/login/2fa',
'Node\.js 18\+',
'badge/Node\.js-18'
)
Get-ChildItem $wiki -Filter '*.md' | ForEach-Object {
$file = $_.Name
$n = 0
Get-Content $_.FullName | ForEach-Object {
$n++
$t = $_
foreach ($p in $patterns) {
if ($t -match $p) {
if ($t -match 'not.?`?mac_address' -or $t -match 'no separate' -or $t -match '\*\*no\*\* separate') {
continue
}
Write-Host "FAIL ${file}:${n}: $t"
$script:fail = $true
}
}
}
}
if ($fail) { exit 1 }
Write-Host 'OK: wiki stale-claim checks passed'