mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Added write-red.ps1, write-green.ps1 and write-blue.ps1
This commit is contained in:
@ -7,11 +7,10 @@
|
||||
# License: CC0
|
||||
|
||||
param([int]$Seconds)
|
||||
if ($Seconds -eq 0 ) {
|
||||
[int]$Seconds = read-host "Enter number of seconds"
|
||||
}
|
||||
|
||||
try {
|
||||
if ($Seconds -eq 0 ) {
|
||||
[int]$Seconds = read-host "Enter number of seconds"
|
||||
}
|
||||
for ($i = $Seconds; $i -gt 0; $i--) {
|
||||
write-progress "$i seconds"
|
||||
start-sleep -s 1
|
||||
|
Reference in New Issue
Block a user