summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-05 13:17:33 +0200
committerSimon Rettberg2019-04-05 13:17:33 +0200
commit3bf5240a3e4064a7ee6caac4f14831982877a732 (patch)
treea1d1374b36255791a5cc38a4db350049b2fb2320
parentRefactor, rename, break things (diff)
downloadslx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.tar.gz
slx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.tar.xz
slx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.zip
Match proper field
-rw-r--r--slx-tools2
1 files changed, 1 insertions, 1 deletions
diff --git a/slx-tools b/slx-tools
index 3409ca7..1a95fa1 100644
--- a/slx-tools
+++ b/slx-tools
@@ -35,7 +35,7 @@ fs_path_gettype() {
_mp="$( df -P "$1" | awk '$6 ~ "^/" {print $6}' )"
[ -n "$_mp" ] || return 1
[ -d "$_mp" ] || return 1
- awk '$3 == "'"$_mp"'" {print $3}' '/proc/mounts'
+ awk '$2 == "'"$_mp"'" {print $3}' '/proc/mounts'
}
# Helper to check whether given directory resides in RAM, either