Skip to content

Commit a0f5f85

Browse files
Merge pull request #501 from ExtremeFiretop/ExtremeFiretop-Suggested-Fix
Suggested Fix by @cdavis5e
2 parents b047df5 + 0a81b4f commit a0f5f85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MerlinAU.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4905,7 +4905,7 @@ _GetLatestFWUpdateVersionFromGitHub_()
49054905
# Extract the version portion from the URL #
49064906
urlVersion="$(echo "$theURL" \
49074907
| grep -oE "${PRODUCT_ID}_[^ ]*\.(w|pkgtb)" \
4908-
| sed "s/${PRODUCT_ID}_//;s/.w$//;s/.pkgtb$//;s/.ubi$//;s/_/./g" | head -n1)"
4908+
| sed "s/${PRODUCT_ID}_//;s/\\.w$//;s/\\.pkgtb$//;s/_\\(ubi\\|puresqubi\\|nand_squashfs\\)$//;s/_/./g" | head -n1)"
49094909

49104910
if [ "$urlVersion" = "$routerVersion" ]
49114911
then
@@ -4968,7 +4968,7 @@ GetLatestFirmwareMD5URL()
49684968
# Extract the version portion from the URL #
49694969
md5Version="$(echo "$theURL" \
49704970
| grep -oE "${PRODUCT_ID}_[^ ]*\.(md5)" \
4971-
| sed "s/${PRODUCT_ID}_//;s/.md5$//;s/.w$//;s/.pkgtb$//;s/.ubi$//;s/_/./g" | head -n1)"
4971+
| sed "s/${PRODUCT_ID}_//;s/\\.md5$//;s/\\.w$//;s/\\.pkgtb$//;s/_\\(ubi\\|puresqubi\\|nand_squashfs\\)$//;s/_/./g" | head -n1)"
49724972

49734973
if [ "$md5Version" = "$routerVersion" ]
49744974
then

0 commit comments

Comments
 (0)