From 0d8e382bc085efee1281474cfa42cd8681679d43 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 4 Jun 2012 09:03:50 -0400 Subject: explicitly unset build function before sourcing This fixes an unlikely (and likely unseen) regression from 9a20048c6279cd. Without unsetting the build function before sourcing the hook file, we can't guarantee that we're running the build function tied to that specific file. Signed-off-by: Dave Reisner --- functions | 1 + 1 file changed, 1 insertion(+) diff --git a/functions b/functions index 81927d0..64de5b2 100644 --- a/functions +++ b/functions @@ -615,6 +615,7 @@ run_build_hook() { fi # source + unset -f build if ! . "$script"; then error 'Failed to read %s' "$script" return 1 -- cgit v1.2.3-24-g4f1b