mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Add datatype to param()
This commit is contained in:
@ -12,9 +12,10 @@
|
||||
#>
|
||||
|
||||
param([int]$Seconds = 0)
|
||||
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--) {
|
||||
clear-host
|
||||
./write-big "T-$i seconds"
|
||||
|
Reference in New Issue
Block a user