mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
fix bug with underscore in subvolume name
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ unset snapshots
|
|||||||
oldIFS=$IFS
|
oldIFS=$IFS
|
||||||
IFS=$'\n'
|
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#*"?"}"
|
snap_name="${snap#*"?"}"
|
||||||
# Discard deleted snapshots
|
# Discard deleted snapshots
|
||||||
if [ $snap_name = "DELETED" ]; then continue; fi
|
if [ $snap_name = "DELETED" ]; then continue; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user