summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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