From 4d7b259f1ce494929b76dd3601e319199a0b96b1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 27 Jun 2017 09:07:07 +0200 Subject: archbuild.in: clean up previous commit --- archbuild.in | 6 ++++-- 1 file 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 -- cgit v1.2.3-54-g00ecf