summaryrefslogtreecommitdiff
path: root/archbuild.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-03-07 19:55:05 +0100
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-03-07 20:37:54 +0100
commitc53a3e80170dc9d45beeeb623edfbf0bd40799a7 (patch)
tree6cbeab8af72dfa40a7c445817fe208583df7e872 /archbuild.in
parent45f87aa9d5b44e4ff2f73be6597d4024bcded8e3 (diff)
downloaddevtools32-c53a3e80170dc9d45beeeb623edfbf0bd40799a7.tar.xz
lib/archroot.sh: Add is_btrfs helper
Diffstat (limited to 'archbuild.in')
-rw-r--r--archbuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in
index 4fb33c3..b192788 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -52,7 +52,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
lock 9 "$copy.lock" "Locking chroot copy '$copy'"
- if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then
+ if is_btrfs "${copy}"; then
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
fi
rm -rf --one-file-system "${copy}"