diff options
Diffstat (limited to 'archbuild.in')
-rw-r--r-- | archbuild.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in index 4dcc0f3..06c9815 100644 --- a/archbuild.in +++ b/archbuild.in @@ -53,7 +53,9 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then lock_open_write 9 "$copy.lock" "Locking chroot copy '$copy'" - { type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null + if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then + { type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null + fi rm -rf --one-file-system "${copy}" done lock_close 9 |