Tweaks and fixes
Improved sz-df output of zfs mounts Removed PowerShellCookbook dependecy in Packagesz class
This commit is contained in:
parent
c6cc116564
commit
8b2a4ca0cb
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ class Packagesz { #: System.Management.Automation.IValidateSetValuesGenerator {
|
|||
$v = $v -and $($c.Username | Where-Object { $username -match $_ })
|
||||
}
|
||||
if( $v -and $c.custom ) {
|
||||
$v = $v -and ([bool]$(Invoke-ScriptBlock ([ScriptBlock]::Create($c.custom))))
|
||||
$v = $v -and ([bool]$(& ([ScriptBlock]::Create($c.custom))))
|
||||
}
|
||||
switch( $c.Logic ) {
|
||||
[szLogic]::not { $valid = $valid -and -not $v }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue