Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-27 09:07:07 +0200
committerErich Eckner <git@eckner.net>2017-06-27 09:07:07 +0200
commit4d7b259f1ce494929b76dd3601e319199a0b96b1 (patch)
tree446b87f202813b26a920df0df3c30d131eb40f2e /archbuild.in
parent1de370354a1aca41293820167b82a97967d6a084 (diff)
archbuild.in: clean up previous commit
Diffstat (limited to 'archbuild.in')
-rw-r--r--archbuild.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/archbuild.in b/archbuild.in
index 88fbbde..5044e0a 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -66,8 +66,10 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
subvolume_delete_recursive "${copy}"
rm -rf --one-file-system "${copy}"
if [ -d "${copy}" ]; then
- find "${copy}" -xdev -type d -exec 'mountpoint' '{}' ';' | \
- xargs -rn1 umount -l
+ find "${copy}" \
+ -xdev -mindepth 1 -type d \
+ -exec 'mountpoint' '-q' '{}' ';' \
+ -exec 'umount' '-l' '{}' ';'
rm -rf --one-file-system "${copy}"
fi
done