summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-12-23 11:29:18 -0800
committerAndy Weidenbaum2015-12-23 11:29:18 -0800
commitef5bf2f8556416907f2bc1dcf16d9ba87211a181 (patch)
tree8843fd8685e4d7e7c340b1a83d352e8e0cbe970c
parent83cc358022dfde5f5a9b514f9474b9990fb1d97a (diff)
downloadaur-ef5bf2f8556416907f2bc1dcf16d9ba87211a181.tar.gz
use findmnt in _is_btrfs function
-rw-r--r--.SRCINFO2
-rw-r--r--bs.install2
2 files changed, 2 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 34d9e2cce58..90ec811f469 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Tue Dec 22 04:33:29 UTC 2015
+# Wed Dec 23 19:28:30 UTC 2015
pkgbase = libbitcoin-server
pkgdesc = Bitcoin Full Node and Query Server
pkgver = 2.2.0
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