Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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