From 595b7cb874d0e69cd5eb5c8627f3debc60faece1 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 31 Jul 2024 22:18:47 +0200 Subject: [PATCH] Display console output of hooks --- scripts/Windows/Scripts/Hooks.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Hooks.ps1 b/scripts/Windows/Scripts/Hooks.ps1 index 78843f83..fb2e2b5d 100644 --- a/scripts/Windows/Scripts/Hooks.ps1 +++ b/scripts/Windows/Scripts/Hooks.ps1 @@ -1,11 +1,11 @@ function Invoke-Hook() { param( [string] $Name, - [System.Action] $Fallback + [scriptblock] $Fallback ) if ($Fallback) { - $scriptBlock = { $Fallback.Invoke(); }; + $scriptBlock = $Fallback; } else { $scriptBlock = { }; }