diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-06-05 22:29:47 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-06-05 22:29:47 +0200 |
commit | 64a82a486cbd1f75cc735326779e962616e53ccc (patch) | |
tree | d63f271efe469ea91e0dfc0cadc649f6c0153b8e /scripts | |
parent | 3d422634dfaa9b241fcb6945ca906ad798701b28 (diff) | |
download | vyos-live-build-64a82a486cbd1f75cc735326779e962616e53ccc.tar.gz vyos-live-build-64a82a486cbd1f75cc735326779e962616e53ccc.zip |
Correcting execution of local source hooks.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/source_hooks | 4 |
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 |