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>
54 lines
1.5 KiB
PowerShell
54 lines
1.5 KiB
PowerShell
# Check line endings in BAT files
|
|
|
|
Write-Host "[INFO] Checking line endings..."
|
|
Write-Host ""
|
|
|
|
# Check original
|
|
$Original = Get-Content "DEPLOY.BAT" -Raw
|
|
$HasCRLF_Original = $Original -match "`r`n"
|
|
$HasLF_Original = $Original -match "[^`r]`n"
|
|
|
|
Write-Host "DEPLOY.BAT (Original):"
|
|
if ($HasCRLF_Original) {
|
|
Write-Host " [OK] Contains CRLF (DOS-compatible)"
|
|
} elseif ($HasLF_Original) {
|
|
Write-Host " [WARNING] Contains LF only (Unix format)"
|
|
} else {
|
|
Write-Host " [UNKNOWN] No line breaks detected"
|
|
}
|
|
|
|
Write-Host ""
|
|
|
|
# Check NAS copy
|
|
if (Test-Path "DEPLOY_FROM_NAS.BAT") {
|
|
$FromNAS = Get-Content "DEPLOY_FROM_NAS.BAT" -Raw
|
|
$HasCRLF_NAS = $FromNAS -match "`r`n"
|
|
$HasLF_NAS = $FromNAS -match "[^`r]`n"
|
|
|
|
Write-Host "DEPLOY_FROM_NAS.BAT (From NAS):"
|
|
if ($HasCRLF_NAS) {
|
|
Write-Host " [OK] Contains CRLF (DOS-compatible)"
|
|
} elseif ($HasLF_NAS) {
|
|
Write-Host " [ERROR] Contains LF only (Unix format - DOS won't work!)"
|
|
} else {
|
|
Write-Host " [UNKNOWN] No line breaks detected"
|
|
}
|
|
|
|
# Compare file sizes
|
|
$OrigSize = (Get-Item "DEPLOY.BAT").Length
|
|
$NASSize = (Get-Item "DEPLOY_FROM_NAS.BAT").Length
|
|
|
|
Write-Host ""
|
|
Write-Host "File Sizes:"
|
|
Write-Host " Original: $OrigSize bytes"
|
|
Write-Host " From NAS: $NASSize bytes"
|
|
|
|
if ($OrigSize -ne $NASSize) {
|
|
Write-Host " [WARNING] Size mismatch - line endings may have been converted"
|
|
} else {
|
|
Write-Host " [OK] Sizes match"
|
|
}
|
|
} else {
|
|
Write-Host "[ERROR] DEPLOY_FROM_NAS.BAT not found"
|
|
}
|