Display console output of hooks

This commit is contained in:
Manuel Thalmann 2024-07-31 22:18:47 +02:00
parent 9a3c5f6b32
commit 595b7cb874

View file

@ -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 = { };
} }