From d169892362980ec4af40687ec33191e1de028208 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Tue, 9 Dec 2025 14:53:22 -0500 Subject: [PATCH] Fix PowerShell syntax error in Backup-GERegistry.ps1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed ${fileSizeKB} to $fileSizeKB to fix parsing error on some systems. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/Backup-GERegistry.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Backup-GERegistry.ps1 b/scripts/Backup-GERegistry.ps1 index fdb0795..871f9d5 100644 --- a/scripts/Backup-GERegistry.ps1 +++ b/scripts/Backup-GERegistry.ps1 @@ -176,7 +176,7 @@ foreach ($type in $registryPaths.Keys) { if ($success -and (Test-Path $regInfo.OutputFile)) { $fileSize = (Get-Item $regInfo.OutputFile).Length $fileSizeKB = [math]::Round($fileSize / 1KB, 2) - Write-ColorOutput " Saved to: $($regInfo.OutputFile) (${fileSizeKB} KB)" "Green" + Write-ColorOutput " Saved to: $($regInfo.OutputFile) ($fileSizeKB KB)" "Green" $backupResults += @{ Type = $type @@ -240,7 +240,7 @@ if ($mergedCount -gt 0) { $fileSize = (Get-Item $combinedFile).Length $fileSizeKB = [math]::Round($fileSize / 1KB, 2) - Write-ColorOutput " ✓ Combined backup saved: $combinedFile (${fileSizeKB} KB)" "Green" + Write-ColorOutput " Combined backup saved: $combinedFile ($fileSizeKB KB)" "Green" # Clean up individual files if combined was successful foreach ($result in $backupResults | Where-Object { $_.Success }) {