mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-04 13:05:00 +08:00
remove non numeric characters from snapshot id (#76)
Snapper support enhanced
This commit is contained in:
@@ -300,6 +300,10 @@ snapshot_list()
|
||||
local entry="${entries[$i]}"
|
||||
for j in "${!snapper_ids[@]}"; do
|
||||
local snapper_id="${snapper_ids[$j]//[[:space:]]/}"
|
||||
# remove other non numeric characters
|
||||
snapper_id="${snapper_id//\*/}"
|
||||
snapper_id="${snapper_id//\+/}"
|
||||
snapper_id="${snapper_id//-/}"
|
||||
if [[ "$snapper_id" == "$id" ]]; then
|
||||
local snapper_type=$(trim "${snapper_types[$j]}")
|
||||
local snapper_description=$(trim "${snapper_descriptions[$j]}")
|
||||
|
||||
Reference in New Issue
Block a user