summarylogtreecommitdiffstats
path: root/bs.install
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-12-23 11:29:23 -0800
committerAndy Weidenbaum2015-12-23 11:29:23 -0800
commitbe3ec33c000daab6e32ad4860f91fc0dae61c694 (patch)
tree3b9f5fb89fa779594fae3afa7607c344e9fe8221 /bs.install
parent30537775edefc9507a7976c2f2a8f39b73fa0f13 (diff)
downloadaur-be3ec33c000daab6e32ad4860f91fc0dae61c694.tar.gz
use findmnt in _is_btrfs function
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 74e16de1f9f..994e00ce0e6 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