Skip to content

Commit 2f2f0e7

Browse files
Update MerlinAU.sh
Small Improvements
1 parent 628ab14 commit 2f2f0e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MerlinAU.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,8 @@ _CreateEMailContent_()
16861686
fwNewUpdateVersion="$(Get_Custom_Setting "FW_New_Update_Notification_Vers")"
16871687
fi
16881688

1689-
#Remove any suffix starting with "-" or "_" to avoid version comparison failures#
1690-
fwInstalledVersion="$(echo "$fwInstalledVersion" | sed -E 's/[-_].*$//')"
1689+
# Remove "_rog" or "_tuf" or -gHASHVALUES or -Gnuton* suffix to avoid version comparison failure, can't remove all for proper beta and alpha comparison #
1690+
fwInstalledVersion="$(echo "$fwInstalledVersion" | sed -E 's/(_(rog|tuf)|-g[0-9a-f]{10}|-gnuton[0-9]+)$//')"
16911691

16921692
case "$1" in
16931693
FW_UPDATE_TEST_EMAIL)
@@ -8722,7 +8722,7 @@ _ShowAdvancedOptionsMenu_()
87228722
fi
87238723
if "$sendEMailNotificationsFlag"
87248724
then
8725-
printf "\n${padStr}[Currently ${GRNct}ENABLED${NOct}, Format: ${GRNct}${sendEMailFormaType}${NOct}]\n"
8725+
printf "\n${padStr}[Currently ${GRNct}ENABLED${NOct}\n"
87268726
else
87278727
printf "\n${padStr}[Currently ${REDct}DISABLED${NOct}]\n"
87288728
fi

0 commit comments

Comments
 (0)