Display console output of hooks
This commit is contained in:
parent
9a3c5f6b32
commit
595b7cb874
|
@ -1,11 +1,11 @@
|
|||
function Invoke-Hook() {
|
||||
param(
|
||||
[string] $Name,
|
||||
[System.Action] $Fallback
|
||||
[scriptblock] $Fallback
|
||||
)
|
||||
|
||||
if ($Fallback) {
|
||||
$scriptBlock = { $Fallback.Invoke(); };
|
||||
$scriptBlock = $Fallback;
|
||||
} else {
|
||||
$scriptBlock = { };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue