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