summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-12-23 11:29:23 -0800
committerAndy Weidenbaum2015-12-23 11:29:23 -0800
commitbe3ec33c000daab6e32ad4860f91fc0dae61c694 (patch)
tree3b9f5fb89fa779594fae3afa7607c344e9fe8221
parent30537775edefc9507a7976c2f2a8f39b73fa0f13 (diff)
downloadaur-be3ec33c000daab6e32ad4860f91fc0dae61c694.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 28e1a012019..d37d0995951 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 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