summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index 248eab6..00eb2e0 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -76,9 +76,10 @@ run_hook() {
local fails=()
for hook in "${!hookvar}"; do
- # The "<&0&wait $!" trick is to prevent "||" from
+ # The "& wait $!" trick is to prevent "||" from
# disabling "set -e"
- { "$hook" "$@" |& indent; } <&0&wait $! || fails+=("$hook")
+ { "$hook" "$@" |& indent; } &
+ wait $! || fails+=("$hook")
done
if [[ ${#fails[@]} -gt 0 ]]; then