Skip to content

Commit

Permalink
fix bug with underscore in subvolume name
Browse files Browse the repository at this point in the history
  • Loading branch information
Antynea committed Jun 3, 2015
1 parent 5e8c722 commit 2385312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ unset snapshots
oldIFS=$IFS
IFS=$'\n'

for snap in $($bindir/btrfs subvolume list -sa / --sort=-ogen | $bindir/awk '{gsub(/^["<FS_TREE>/"]+/,"",$NF);print $11" "$12"?"$NF}'); do
for snap in $($bindir/btrfs subvolume list -sa / --sort=-ogen | $bindir/awk '{gsub(/^.*<FS_TREE>\//,"",$NF);print $11" "$12"?"$NF}'); do
snap_name="${snap#*"?"}"
# Discard deleted snapshots
if [ $snap_name = "DELETED" ]; then continue; fi
Expand Down

0 comments on commit 2385312

Please sign in to comment.