diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-06-04 15:03:50 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-06-05 02:32:27 +0200 |
commit | 0d8e382bc085efee1281474cfa42cd8681679d43 (patch) | |
tree | 727820e18ab36c75878fd0603e7ed8ac6f5518a4 | |
parent | f465358ba4ac5e32c858b0f7a30c5983fb2a318a (diff) | |
download | mkinitcpio-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>
-rw-r--r-- | functions | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -615,6 +615,7 @@ run_build_hook() { fi # source + unset -f build if ! . "$script"; then error 'Failed to read %s' "$script" return 1 |