Skip to content
Snippets Groups Projects
Commit db3cbe5c authored by Axel Hahn's avatar Axel Hahn
Browse files

set absolute path to find hooks

parent 420ef1ce
No related branches found
No related tags found
1 merge request!80Add hooks
...@@ -188,7 +188,7 @@ function _j_getvar(){ ...@@ -188,7 +188,7 @@ function _j_getvar(){
function _j_runHooks(){ function _j_runHooks(){
local _hookbase="$1" local _hookbase="$1"
local _exitcode="$2" local _exitcode="$2"
local _hookdir="hooks/$_hookbase" local _hookdir="$( dirname $0 )/hooks/$_hookbase"
if [ -z "$_exitcode" ]; then if [ -z "$_exitcode" ]; then
_hookdir="$_hookdir/always" _hookdir="$_hookdir/always"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment