From 3d422634dfaa9b241fcb6945ca906ad798701b28 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 5 Jun 2015 22:28:50 +0200 Subject: Correcting execution of local binary hooks. --- scripts/build/binary_hooks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/binary_hooks b/scripts/build/binary_hooks index b40139797..ffedec12e 100755 --- a/scripts/build/binary_hooks +++ b/scripts/build/binary_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 binary + ../"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} + cd "${OLDPWD}" done # Creating stage file -- cgit v1.2.3