mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Add datatype string
This commit is contained in:
parent
d37e3ba990
commit
6f51636211
@ -11,7 +11,7 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Text = "")
|
||||
param([string]$Text = "")
|
||||
if ($Text -eq "" ) { $Text = read-host "Enter the text to write" }
|
||||
|
||||
write-host -foregroundcolor red "$Text"
|
||||
|
Loading…
Reference in New Issue
Block a user