From b96daf0fa6a08a98db1bd0a4870941414bff741e Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 9 Apr 2013 14:22:59 +0000 Subject: [PATCH] integrate-distro.sh: Change into working directory befor running hooks Signed-off-by: Jan Lindemann --- scripts/integrate-distro.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/integrate-distro.sh b/scripts/integrate-distro.sh index 8bf54bd8..cb7b5674 100644 --- a/scripts/integrate-distro.sh +++ b/scripts/integrate-distro.sh @@ -387,8 +387,11 @@ run_hook() hook="$1" local cmd="${hooks[$hook]}" [ "$cmd" ] || return - [ "${cmd:0:2}" = "./" ] && cmd=$cwd/${cmd:2} - . $cmd + ( + cd $cwd + echo "== running hook $hook ($cmd)" + . $cmd + ) } run_parted()