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:
@ -11,7 +11,7 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Drive = "", [int]$MinLevel = 20) # minimum level in GB
|
||||
param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB
|
||||
|
||||
if ($Drive -eq "" ) { $Drive = read-host "Enter drive to check" }
|
||||
|
||||
|
Reference in New Issue
Block a user