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