fix dev branch not working#4651
Conversation
|
maybe something like this would work instead? $validPresets = @("Standard", "Minimal", "Advanced")
if ($Preset -and $Preset -notin $validPresets) {
Write-Host "Error: Preset '$Preset' is invalid. Must be one of: $($validPresets -join ', ')" -ForegroundColor Red
exit 1
} |
i mean it's whatever it will just fail if the preset is incorrect |
|
fixed in #4653 while preserving the params |
you didn't even test it do you know how i know? because i tested it and it dosen't work |
|
There is literally section in PR desc that describe testing. Doing direct |
here is what i did i downloaded winutil localy than i complied winutil with the fix than took the contents of winutil.ps1 put it inside a github gist than i used |
[ValidateSet("Standard", "Minimal", "Advanced", "")]If you want to validate, adding
|
yeah that fixed it thank you |
Type of Change
Description
Fixes
Issue related to PR