Skip to content

Commit

Permalink
Merge pull request #2 from craigfrancis/patch-1
Browse files Browse the repository at this point in the history
Output of `sfdisk -d` in Ubuntu 20.04 does not end in a comma / regex fix
  • Loading branch information
s-n-ushakov authored May 13, 2020
2 parents 7a15746 + 280a2c9 commit e3ab260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename-efi-entry.bash
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ for disk_name in "${disk_names[@]}" ; do

# parse partition data and add to the result array
for partition_data_line in "${partition_data_array[@]}" ; do
if [[ $partition_data_line =~ ^([^[:blank:]]+)[[:blank:]]:[[:blank:]].*[[:blank:]]uuid=([^,]+), ]] ; then
if [[ $partition_data_line =~ ^([^[:blank:]]+)[[:blank:]]:[[:blank:]].*[[:blank:]]uuid=([^,[:blank:]]+) ]] ; then
device=${BASH_REMATCH[1]}
uuid_lowercase="${BASH_REMATCH[2],,}"
partitions[$uuid_lowercase]=$device
Expand Down

0 comments on commit e3ab260

Please sign in to comment.