summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-22 21:14:21 +0200
committerErich Eckner <git@eckner.net>2019-05-22 21:14:21 +0200
commitf64909ece6fe0b6b070ef5fa1fab1f594a8bf9b3 (patch)
treeadffdf16401d3a0e23ca360f5f39d06e611b1da1
parent1047769fb300e53304c7955bd8cc151de7c9011f (diff)
downloadbuilder-f64909ece6fe0b6b070ef5fa1fab1f594a8bf9b3.tar.xz
lib/common-functions: recursively_umount_and_rm() make unsufficient privileges non-fatal
-rwxr-xr-xlib/common-functions4
1 files changed, 2 insertions, 2 deletions
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]