From db3cbe5c43c5a58192d97d65d8d90a8cfad90d07 Mon Sep 17 00:00:00 2001
From: Axel Hahn <ax2002@gmx.net>
Date: Sun, 9 Oct 2022 23:38:32 +0200
Subject: [PATCH] set absolute path to find hooks

---
 jobhelper.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jobhelper.sh b/jobhelper.sh
index b728769..5106239 100755
--- a/jobhelper.sh
+++ b/jobhelper.sh
@@ -188,7 +188,7 @@ function _j_getvar(){
 function _j_runHooks(){
   local _hookbase="$1"
   local _exitcode="$2"
-  local _hookdir="hooks/$_hookbase"
+  local _hookdir="$( dirname $0 )/hooks/$_hookbase"
 
   if [ -z "$_exitcode" ]; then
     _hookdir="$_hookdir/always"
-- 
GitLab