From f64909ece6fe0b6b070ef5fa1fab1f594a8bf9b3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 22 May 2019 21:14:21 +0200 Subject: lib/common-functions: recursively_umount_and_rm() make unsufficient privileges non-fatal --- lib/common-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index 6ff5b2c..6159e50 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -414,8 +414,8 @@ recursively_umount_and_rm() { [ "$(stat -c %d "$1")" = "$2" ] ' {} "$(stat -c %d "${dir}")" \; \ -exec btrfs subvolume delete {} \; \ - -prune - rm -rf --one-file-system "${dir}" + -prune || true + rm -rf --one-file-system "${dir}" || true } # mangle_pkgbuild $PKGBUILD [$sub_pkgrel] -- cgit v1.2.3-54-g00ecf