Fix /etc/fstab parsing
This commit is contained in:
parent
f8fd363aad
commit
4e3b68e13c
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/fish
|
#!/usr/bin/fish
|
||||||
|
|
||||||
function get-subvol-mounts
|
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
|
end
|
||||||
|
|
||||||
function receive-on-target
|
function receive-on-target
|
||||||
|
|
Loading…
Reference in New Issue