summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 1a1f3e103..3a203860d 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -260,7 +260,11 @@ use_enable() {
}
register_die_hook() {
- export EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} $*"
+ local x
+ for x in $* ; do
+ hasq $x $EBUILD_DEATH_HOOKS || \
+ export EBUILD_DEATH_HOOKS="$EBUILD_DEATH_HOOKS $x"
+ done
}
# Ensure that $PWD is sane whenever possible, to protect against