This commit is contained in:
lksz 2020-12-05 18:19:37 -05:00
commit 3844492976
3 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
{
"custom": null,
"System": [
"Windows"
"Desktop"
],
"Hostname": null,
"Username": null,

View File

@ -44,7 +44,8 @@
$possibleValues
})]
[string[]]$ScriptName
[string[]]$ScriptName,
[switch]$WaitNotRequired = $env:WAIT_NOT_REQUIRED
)
$local:EditRootPath=$MyPSScriptRoot

View File

@ -23,7 +23,7 @@ class Packagesz { #: System.Management.Automation.IValidateSetValuesGenerator {
$local:valid = $Package.Condition[0].Logic -notin ([szLogic]::or, [szLogic]::ornot)
$local:currentSys = [SystemName]::_GetValidValues('',$true,$true);
$local:hostname = $(hostname)
$local:username = $env:USER ?? $env:USERNAME
$local:username = $( if( $env:USER ) { $env:USER } else { $env:USERNAME })
foreach( $local:c in $Package.Condition ) {
if( $valid -eq ($c.Logic -in ([szLogic]::or, [szLogic]::ornot )) ) { continue }