diff options
author | Simon Rettberg | 2019-04-05 13:17:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-04-05 13:17:33 +0200 |
commit | 3bf5240a3e4064a7ee6caac4f14831982877a732 (patch) | |
tree | a1d1374b36255791a5cc38a4db350049b2fb2320 | |
parent | Refactor, rename, break things (diff) | |
download | slx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.tar.gz slx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.tar.xz slx-tools-3bf5240a3e4064a7ee6caac4f14831982877a732.zip |
Match proper field
-rw-r--r-- | slx-tools | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |