diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-06-05 22:28:50 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-06-05 22:28:50 +0200 |
commit | 3d422634dfaa9b241fcb6945ca906ad798701b28 (patch) | |
tree | 42855ab74867cee33986d5a4a9d09b92f364d846 /scripts | |
parent | 2fec43b68ac836dacc989c75e20265bb1cb8d181 (diff) | |
download | vyos-live-build-3d422634dfaa9b241fcb6945ca906ad798701b28.tar.gz vyos-live-build-3d422634dfaa9b241fcb6945ca906ad798701b28.zip |
Correcting execution of local binary hooks.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/binary_hooks | 4 |
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 |