grub-btrfs: unquote snap variable

Fix #273

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
Pascal Jäger
2023-04-05 13:40:40 +02:00
parent c7d4bbbe45
commit c6550d0d96
2 changed files with 2 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ snapshot_list()
IFS=$'\n'
for snap in $(btrfs subvolume list -sa "${btrfs_subvolume_sort}" /); do # Parse btrfs snapshots
IFS=$oldIFS
snap=("${snap}")
snap=(${snap})
local path_snapshot=${snap[@]:13:${#snap[@]}}
if [ "$path_snapshot" = "DELETED" ]; then continue; fi # Discard deleted snapshots
[[ ${path_snapshot%%"/"*} == "<FS_TREE>" ]] && path_snapshot=${path_snapshot#*"/"} # Remove the "<FS_TREE>" string at the beginning of the path

2
config
View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
GRUB_BTRFS_VERSION=4.12-master-2023-03-26T19:50:48+00:00
GRUB_BTRFS_VERSION=4.12-master-2023-04-05T11:40:40+00:00
# Disable grub-btrfs.
# Default: "false"