makepkg: wait for process to finish

Without the -f option to wait, we might move on and try to delete the
logpipe before the process is completed.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2019-10-07 16:22:52 +10:00
parent e581068c77
commit 8e7d425627

View File

@ -428,7 +428,7 @@ run_function() {
$pkgfunc &>"$logpipe"
wait $teepid
wait -f $teepid
rm "$logpipe"
else
"$pkgfunc"