Skip to content

Commit b0f75d4

Browse files
khusmenoKubilay
andauthored
nicer findings opening (#73)
Co-authored-by: Kubilay <khusmeno@khusmeno.com>
1 parent d02562f commit b0f75d4

File tree

1 file changed

+4
-2
lines changed
  • SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing

1 file changed

+4
-2
lines changed

SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing/Analyze.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,12 +891,14 @@ if (!(Test-Path ".\$analyzer_FolderName\$findingsHtml_FileName")) {
891891
}
892892
Start-Process .\$analyzer_FolderName\$findingsHtml_FileName
893893
894-
Write-Host "This will end in a few seconds."
894+
Write-Host "Please wait, this will close in max 20 seconds." -NoNewline
895895
foreach($psJob in Get-Job) {
896896
while ( $psJob.State -eq [System.Management.Automation.JobState]::Running ) {
897-
Start-Sleep -Milliseconds 100
897+
Start-Sleep -Milliseconds 1000
898+
Write-Host "." -NoNewline
898899
}
899900
}
901+
cls
900902
'@
901903
Set-Content -Path (Join-Path -Path (Split-Path $resultFolder -Parent) -ChildPath $findingsPS1_FileName ) -Value $findingsPS1_Content
902904
DeleteFileInTargetFolder $findingsHtml_FileName

0 commit comments

Comments
 (0)