From 3916255544addfeea19b3664ab4af0145299a1f2 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Sun, 24 Mar 2024 05:35:13 +0100
Subject: [PATCH] Fix non-functioning hook method

---
 scripts/Common/Scripts/hooks.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/Common/Scripts/hooks.sh b/scripts/Common/Scripts/hooks.sh
index a144f3a9..06c104b0 100755
--- a/scripts/Common/Scripts/hooks.sh
+++ b/scripts/Common/Scripts/hooks.sh
@@ -1,8 +1,10 @@
 #!/bin/bash
 
 function runHook() {
+    command="${@:2}";
+
     function fallback() {
-        ${@:2};
+        $command;
     }
 
     if command -v $1 > /dev/null