diff options
author | Andy Weidenbaum | 2015-12-23 11:29:23 -0800 |
---|---|---|
committer | Andy Weidenbaum | 2015-12-23 11:29:23 -0800 |
commit | be3ec33c000daab6e32ad4860f91fc0dae61c694 (patch) | |
tree | 3b9f5fb89fa779594fae3afa7607c344e9fe8221 | |
parent | 30537775edefc9507a7976c2f2a8f39b73fa0f13 (diff) | |
download | aur-be3ec33c000daab6e32ad4860f91fc0dae61c694.tar.gz |
use findmnt in _is_btrfs function
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | bs.install | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue Dec 22 04:32:53 UTC 2015 +# Wed Dec 23 19:28:30 UTC 2015 pkgbase = libbitcoin-server-git pkgdesc = Bitcoin Full Node and Query Server pkgver = 20151221 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 |