Skip to content

Commit 5af32b8

Browse files
Update MerlinAU.sh
1 parent e788b6d commit 5af32b8

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
@@ -9,7 +9,7 @@
99
set -u
1010

1111
#For AMTM versioning:
12-
readonly SCRIPT_VERSION=1.0.2
12+
readonly SCRIPT_VERSION=1.0.1
1313
readonly SCRIPT_NAME="MerlinAU"
1414

1515
##-------------------------------------##
@@ -2600,11 +2600,11 @@ Please manually update to version $minimum_supported_version or higher to use th
26002600
formatted_release_version=$(echo $release_version | awk -F. '{print $2"."$3}')
26012601

26022602
# Check if the current version is present in the changelog
2603-
if ! grep -q "$formatted_current_version" "$changelog_file"; then
2603+
if ! grep -qE "^${formatted_current_version} \([0-9]+[-]" "$changelog_file"; then
26042604
Say "Current version not found in change-log. Bypassing change-log verification for this run."
26052605
else
26062606
# Extract log contents between two firmware versions
2607-
changelog_contents=$(awk "/$formatted_release_version/,/$formatted_current_version/" "$changelog_file")
2607+
changelog_contents=$(awk "/^$formatted_release_version \([0-9]+[-]/,/$formatted_current_version \([0-9]+[-]/" "$changelog_file")
26082608

26092609
# Define high-risk terms as a single string separated by '|'
26102610
high_risk_terms="factory default reset|features are disabled|break backward compatibility|must be manually|strongly recommended"

0 commit comments

Comments
 (0)