summarylogtreecommitdiffstats
path: root/bitcoin.install
diff options
context:
space:
mode:
Diffstat (limited to 'bitcoin.install')
-rw-r--r--bitcoin.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitcoin.install b/bitcoin.install
index c38add6635e0..42e996acd883 100644
--- a/bitcoin.install
+++ b/bitcoin.install
@@ -88,7 +88,7 @@ EOF
# 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