summarylogtreecommitdiffstats
path: root/bs.install
diff options
context:
space:
mode:
Diffstat (limited to 'bs.install')
-rw-r--r--bs.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs.install b/bs.install
index 74e16de1f9fc..994e00ce0e63 100644
--- a/bs.install
+++ b/bs.install
@@ -44,7 +44,7 @@ _rmuser() {
# check if dir is btrfs
_is_btrfs() {
- if [[ $(df -TP "$1" | tail -n 1 | awk '{print $2}') == 'btrfs' ]]; then
+ if [[ $(findmnt --target $1 --output FSTYPE --noheadings) == 'btrfs' ]]; then
return 0
else
return 1