summaryrefslogtreecommitdiff
path: root/scripts/build/source_hooks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/source_hooks')
-rwxr-xr-xscripts/build/source_hooks4
1 files changed, 3 insertions, 1 deletions
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