From 64a82a486cbd1f75cc735326779e962616e53ccc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 5 Jun 2015 22:29:47 +0200 Subject: [PATCH] Correcting execution of local source hooks. --- scripts/build/source_hooks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build/source_hooks b/scripts/build/source_hooks index d3059de98..feff063c8 100755 --- a/scripts/build/source_hooks +++ b/scripts/build/source_hooks @@ -72,7 +72,9 @@ do fi # Executing hook - ./"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} + cd source + ../"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} + cd "${OLDPWD}" done # Creating stage file