Fix /etc/fstab parsing

This commit is contained in:
Les De Ridder 2016-06-19 19:23:31 +00:00
parent f8fd363aad
commit 4e3b68e13c
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/fish
function get-subvol-mounts
cat /etc/fstab | grep btrfs | cut -d\t -f2,4 | sed 's/\(.*\)\t.*,subvol=\(.*\)$/\2 \1/'
cat /etc/fstab | grep btrfs | column -t | tr -s ' ' | cut -d' ' -f2,4 | sed 's/\(.*\)\s.*,subvol=\(.*\)$/\2 \1/'
end
function receive-on-target