diff options
author | Andrew Cady <d@jerkface.net> | 2023-06-05 18:56:30 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-06-05 18:56:30 -0400 |
commit | c74ccc8475d4d642a310e3622c4353d541ec7d47 (patch) | |
tree | 22c38d09e269685a6fbce5f8dd13f7251832e063 | |
parent | 2d5b3927d11ef7c3182344450b8abaa5b7b17d1c (diff) |
looser parsing; fix for when -s is specified, which adds fields
-rwxr-xr-x | list-all-subvolumes | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/list-all-subvolumes b/list-all-subvolumes index b851a9b..a5f79cf 100755 --- a/list-all-subvolumes +++ b/list-all-subvolumes | |||
@@ -20,8 +20,10 @@ list_all_subvolumes() | |||
20 | 20 | ||
21 | extract_subvolume_path() | 21 | extract_subvolume_path() |
22 | { | 22 | { |
23 | while read _ id _ gen _ _ toplevel _ path | 23 | while read |
24 | do | 24 | do |
25 | path=${REPLY#* path } | ||
26 | [ "$path" != "$REPLY" ] | ||
25 | printf '%s/%s\n' "$1" "${path#<FS_TREE>/}" | 27 | printf '%s/%s\n' "$1" "${path#<FS_TREE>/}" |
26 | done | 28 | done |
27 | } | 29 | } |