diff options
author | Erich Eckner <git@eckner.net> | 2019-05-22 21:14:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-22 21:14:21 +0200 |
commit | f64909ece6fe0b6b070ef5fa1fab1f594a8bf9b3 (patch) | |
tree | adffdf16401d3a0e23ca360f5f39d06e611b1da1 /lib/common-functions | |
parent | 1047769fb300e53304c7955bd8cc151de7c9011f (diff) | |
download | builder-f64909ece6fe0b6b070ef5fa1fab1f594a8bf9b3.tar.xz |
lib/common-functions: recursively_umount_and_rm() make unsufficient privileges non-fatal
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-x | lib/common-functions | 4 |
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] |