diff --git a/scripts/Backup-GERegistry.ps1 b/scripts/Backup-GERegistry.ps1 index 871f9d5..e8df247 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 }) {