Skip to content

Commit

Permalink
Add an upgrade notice for future XX.0 versions.
Browse files Browse the repository at this point in the history
@grooverdan suggestion.
  • Loading branch information
fauust committed Oct 20, 2023
1 parent 241da9d commit 3575eaa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/bash_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,13 @@ deb_setup_mariadb_mirror() {
branch_tmp=$1
major=${branch_tmp%.*}
minor=${branch_tmp##*.}
if [[ $branch_tmp == "11.0" ]]; then
prev_release="10.11"
if [[ $minor == "0" ]]; then
if [[ $major == "11" ]]; then
prev_release="10.11"
else
bb_log_err "Unknown previous branch for $branch_tmp, please update this script"
exit 1
fi
else
prev_release="$major.$((minor - 1))"
fi
Expand Down

0 comments on commit 3575eaa

Please sign in to comment.