summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-04 15:03:50 +0200
committerDave Reisner <dreisner@archlinux.org>2012-06-05 02:32:27 +0200
commit0d8e382bc085efee1281474cfa42cd8681679d43 (patch)
tree727820e18ab36c75878fd0603e7ed8ac6f5518a4 /functions
parentf465358ba4ac5e32c858b0f7a30c5983fb2a318a (diff)
downloadmkinitcpio-0d8e382bc085efee1281474cfa42cd8681679d43.tar.gz
mkinitcpio-0d8e382bc085efee1281474cfa42cd8681679d43.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions1
1 files changed, 1 insertions, 0 deletions
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