From fd6d2506b66c6d008f403e0dead77ff9c2bb0961 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 31 Jul 2025 19:28:39 +0200 Subject: [PATCH] Improved write-progress-bar.ps1 --- scripts/write-progress-bar.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/write-progress-bar.ps1 b/scripts/write-progress-bar.ps1 index ef4fbc2e..932e10aa 100755 --- a/scripts/write-progress-bar.ps1 +++ b/scripts/write-progress-bar.ps1 @@ -1,8 +1,7 @@ $progressBar = @('⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷') -$progressIndex = 0 -do { - Write-Host "`r$($progressBar[$progressIndex]) Working on something..." -NoNewline - $progressIndex = ($progressIndex + 1) % $progressBar.Length +for ([int]$i = 0; $i -lt 150; $i++) { + Write-Host "`r$($progressBar[$i % 7]) Working on something..." -NoNewline Start-Sleep -milliseconds 100 -} while ($true) \ No newline at end of file +} +exit 0 # success