From 2783cbe0c18512f3057353a5451125caf2caa8ad Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 18 Apr 2026 18:15:52 +0300 Subject: [PATCH] Move clipboard notice to end --- scripts/DL_Diag.ps1 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/DL_Diag.ps1 b/scripts/DL_Diag.ps1 index a4e0bde..b5548a0 100644 --- a/scripts/DL_Diag.ps1 +++ b/scripts/DL_Diag.ps1 @@ -372,13 +372,6 @@ $finalOutputText = [string]::Join([Environment]::NewLine, $finalOutputLines) $clipboardCopied = Copy-TextToClipboard -Text $finalOutputText Write-Host -if ($clipboardCopied) { - Write-Host 'Diagnostics copied to clipboard' -ForegroundColor Green -} -else { - Write-Host 'Clipboard copy failed, copy the text below manually' -ForegroundColor Yellow -} - Write-Host '----- BEGIN DIAGNOSTICS -----' -ForegroundColor Cyan foreach ($line in $reportLines) { @@ -386,3 +379,12 @@ foreach ($line in $reportLines) { } Write-Host '----- END DIAGNOSTICS -----' -ForegroundColor Cyan + +if ($clipboardCopied) { + Write-Host + Write-Host 'Diagnostics copied to clipboard' -ForegroundColor Green +} +else { + Write-Host + Write-Host 'Clipboard copy failed, copy the text above manually' -ForegroundColor Yellow +}