Skip to content

Commit b722a07

Browse files
committed
MDBF-1107: Major upgrade to be LTS only < 12.0
1 parent 85f63ee commit b722a07

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

scripts/bash_lib.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,7 @@ upgrade_test_type() {
462462
;;
463463
"major")
464464
major=${major_version%.*}
465-
# intentionally twice, 11.5.3 has minor of 5.
466-
minor=${major_version##*.}
465+
# 11.5 has minor of 5 and major of 11
467466
minor=${major_version##*.}
468467
# with the earliest supported 11.X version
469468
# and make this the upgrade from 10.11
@@ -477,7 +476,20 @@ upgrade_test_type() {
477476
exit 1
478477
fi
479478
else
480-
prev_major_version="$major.$((minor - 1))"
479+
case $major_version in
480+
"10.11")
481+
prev_major_version="10.6"
482+
;;
483+
"11.4")
484+
prev_major_version="10.11"
485+
;;
486+
"11.8")
487+
prev_major_version="11.4"
488+
;;
489+
*)
490+
prev_major_version="$major.$((minor - 1))"
491+
;;
492+
esac
481493
fi
482494
;;
483495
"distro")

0 commit comments

Comments
 (0)