summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-06-05 22:29:47 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2015-06-05 22:29:47 +0200
commit64a82a486cbd1f75cc735326779e962616e53ccc (patch)
treed63f271efe469ea91e0dfc0cadc649f6c0153b8e
parent3d422634dfaa9b241fcb6945ca906ad798701b28 (diff)
downloadvyos-live-build-64a82a486cbd1f75cc735326779e962616e53ccc.tar.gz
vyos-live-build-64a82a486cbd1f75cc735326779e962616e53ccc.zip
Correcting execution of local 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