Fix cut-and-paste error in previous fix.
authorsrs5694 <srs5694@users.sourceforge.net>
Thu, 3 Nov 2016 18:43:08 +0000 (14:43 -0400)
committersrs5694 <srs5694@users.sourceforge.net>
Thu, 3 Nov 2016 18:43:08 +0000 (14:43 -0400)
refind-install

index f1c7cda..87b4667 100755 (executable)
@@ -1137,7 +1137,8 @@ AddBootEntry() {
       for Name in `lsblk -r | grep disk | cut -f 1 -d " "` ; do
          if [[ $InstallPart == *"$Name"* ]] ; then
             InstallDisk="/dev/"$Name
-            PartNum=`echo "${InstallPart#$InstallDisk}"`
+            PartNum=${InstallPart#$InstallDisk}
+            PartNum=`echo "${PartNum//[!0-9]/}"`
             break
          fi
       done