summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index bfa69be..9897eba 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -367,10 +367,10 @@ if arch-nspawn "$copydir" \
/chrootbuild "${makepkg_args[@]}"
then
mapfile -t pkgnames < <(sudo -u "$makepkg_user" bash -c 'source PKGBUILD; printf "%s\n" "${pkgname[@]}"')
- move_products
else
(( ret += 1 ))
fi
+move_products
(( temp_chroot )) && delete_chroot "$copydir" "$copy"