Skip to content

Commit

Permalink
Fixed comparisons of F/W versions (#619)
Browse files Browse the repository at this point in the history
Fixed 2 bugs in the code that were incorrectly comparing versions between the currently installed F/W with the next F/W update available.
  • Loading branch information
Martinski4GitHub authored Jul 4, 2024
1 parent c3d4822 commit c983cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/src/router/rom/webs_scripts/merlin_webs_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ else
newfirm=1
elif [ "$current_base" -eq "$firmbase" ] && [ "$current_firm" -lt "$firmver" ]; then
newfirm=1
elif [ "$current_base" -eq "$firmbase" ] && [ "$current_firm" -eq "$current_firm" ] && [ "$current_buildno" -lt "$buildno" ]; then
elif [ "$current_base" -eq "$firmbase" ] && [ "$current_firm" -eq "$firmver" ] && [ "$current_buildno" -lt "$buildno" ]; then
newfirm=1
elif [ "$current_base" -eq "$firmbase" ] && [ "$current_firm" -eq "$current_firm" ] && [ "$current_buildno" -eq "$buildno" ] && [ "$current_extendno" -lt "$lextendno" ]; then
elif [ "$current_base" -eq "$firmbase" ] && [ "$current_firm" -eq "$firmver" ] && [ "$current_buildno" -eq "$buildno" ] && [ "$current_extendno" -lt "$lextendno" ]; then
newfirm=1
else
newfirm=0
Expand Down

0 comments on commit c983cbe

Please sign in to comment.