Skip to content

Commit

Permalink
Merge pull request #8 from Antynea/Development
Browse files Browse the repository at this point in the history
fix bug with underscore in subvolume name
  • Loading branch information
Antynea committed Jun 3, 2015
2 parents 5fe28d3 + 2385312 commit fda6eb8
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 fda6eb8

Please sign in to comment.