Move 150+ scripts from root and scripts/ into client/project directories: - clients/dataforth/scripts/ (110 files: AD2, sync, SSH, DB, DOS scripts) - clients/bg-builders/scripts/ (14 files: Lesley mgmt, Exchange, termination) - clients/internal-infrastructure/scripts/ (10 files: GDAP, Gitea, backups) - projects/msp-tools/scripts/ (9 files: CIPP, MSP onboarding, Datto) - projects/gururmm-agent/scripts/ (3 files: API test, JWT, record counts) - clients/glaztech/scripts/ (1 file: CentraStage removal) Also reorganized: - VPN scripts → infrastructure/vpn-configs/ - Retrieved API/JS files → api/ - Forum posts → projects/community-forum/forum-posts/ - SSH docs → clients/internal-infrastructure/docs/ - NWTOC/CTONW docs → projects/wrightstown-smarthome/docs/ - ACG website files → projects/internal/acg-website-2025/ - Dataforth docs → clients/dataforth/docs/ - schema-retrieved.sql → docs/database/ Deleted 24 tmp_*.ps1 one-off debug scripts (preserved in git history). Root reduced from 220+ files to 62 items (docs + directories only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
1.1 KiB
PowerShell
37 lines
1.1 KiB
PowerShell
# Verify CRLF preservation after sync fix
|
|
|
|
Write-Host "[INFO] Verifying CRLF on files from NAS..."
|
|
Write-Host ""
|
|
|
|
# Copy fresh from NAS using -O flag (binary mode)
|
|
Write-Host "[INFO] Copying DEPLOY.BAT from NAS..."
|
|
& 'C:\Windows\System32\OpenSSH\scp.exe' -O root@192.168.0.9:/data/test/DEPLOY.BAT ./DEPLOY_VERIFY.BAT 2>$null
|
|
|
|
if (Test-Path "DEPLOY_VERIFY.BAT") {
|
|
$Content = Get-Content "DEPLOY_VERIFY.BAT" -Raw
|
|
$Size = (Get-Item "DEPLOY_VERIFY.BAT").Length
|
|
|
|
Write-Host "[INFO] File size: $Size bytes"
|
|
|
|
if ($Content -match "`r`n") {
|
|
Write-Host "[SUCCESS] CRLF preserved on NAS!"
|
|
} else {
|
|
Write-Host "[ERROR] Still LF only - sync may not have run yet"
|
|
}
|
|
|
|
# Compare with original
|
|
$OrigSize = (Get-Item "DEPLOY.BAT").Length
|
|
Write-Host "[INFO] Original size: $OrigSize bytes"
|
|
|
|
if ($Size -eq $OrigSize) {
|
|
Write-Host "[OK] Sizes match - line endings preserved"
|
|
} else {
|
|
Write-Host "[WARNING] Size mismatch - may need another sync cycle"
|
|
}
|
|
} else {
|
|
Write-Host "[ERROR] Failed to copy from NAS"
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "[INFO] Note: If still LF only, wait for next sync cycle (every 15 min)"
|