mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Updated set-timer.ps1
This commit is contained in:
parent
94106839fd
commit
9f027b60c5
@ -11,8 +11,10 @@ try {
|
||||
if ($Seconds -eq 0 ) {
|
||||
[int]$Seconds = read-host "Enter number of seconds"
|
||||
}
|
||||
|
||||
for ($i = $Seconds; $i -gt 0; $i--) {
|
||||
write-progress "$i seconds"
|
||||
clear-host
|
||||
write-big "T-$i seconds"
|
||||
start-sleep -s 1
|
||||
}
|
||||
write-output "OK - $Seconds seconds countdown finished"
|
||||
|
Loading…
Reference in New Issue
Block a user