diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 12:25:48 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 12:25:48 -0400 |
commit | fd0109ecd077f53d0fdf3746bc5d2a8c8f1e82e7 (patch) | |
tree | b4b848c38e6ed07ab7ca0c2fc2b105c04f6e0656 /archbuild.in | |
parent | d0e593c9f8deef75e1d7878787f62e111303d9ba (diff) | |
parent | eebfd9a30f7d7f2c7fa98b08dcf7b062a29c2377 (diff) | |
download | devtools32-fd0109ecd077f53d0fdf3746bc5d2a8c8f1e82e7.tar.xz |
Merge tag '20130406' into complete
tagging
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 |