summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-06-05 22:28:50 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2015-06-05 22:28:50 +0200
commit3d422634dfaa9b241fcb6945ca906ad798701b28 (patch)
tree42855ab74867cee33986d5a4a9d09b92f364d846 /scripts/build
parent2fec43b68ac836dacc989c75e20265bb1cb8d181 (diff)
downloadvyos-live-build-3d422634dfaa9b241fcb6945ca906ad798701b28.tar.gz
vyos-live-build-3d422634dfaa9b241fcb6945ca906ad798701b28.zip
Correcting execution of local binary hooks.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_hooks4
1 files changed, 3 insertions, 1 deletions
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