mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-23 03:20:20 +10:00
Removed ValidateScript attribute.
Removed ValidateScript attribute from the language parameter to fix the error and is not needed as the value is checked later.
This commit is contained in:
@@ -64,7 +64,6 @@ param
|
|||||||
[switch]$ignore_in_recommendations_off,
|
[switch]$ignore_in_recommendations_off,
|
||||||
|
|
||||||
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
[Parameter(HelpMessage = 'Select the desired language to use for installation. Default is the detected system language.')]
|
||||||
[ValidateScript({ $_ -match '^(en|py|ru)' })]
|
|
||||||
[Alias('l')]
|
[Alias('l')]
|
||||||
[string]$Language
|
[string]$Language
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user