Fix ghe-host-check unsupported version test for unreleased feature versions

This commit is contained in:
Andrew Mildahl 2023-11-28 16:56:51 -06:00
Родитель b2131769bb
Коммит bec5f58042
Не найден ключ, соответствующий данной подписи
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -68,10 +68,10 @@ begin_test "ghe-host-check detects unsupported GitHub Enterprise Server versions
if [ -z "$supported" ]
then
#BACKUP_UTILS_VERSION WAS NOT FOUND IN LATEST.JSON, CHECK IF ITS GREATER THAN LAST VERSION
if [ "$(version $bu_major_minor)" -ge "$(version ${keys[$((${#keys[@]} - 2 ))]})" ]; then
if [ "$(version $bu_major_minor)" -ge "$(version ${keys[$((${#keys[@]}))]})" ]; then
GHE_TEST_REMOTE_VERSION="$bu_major_minor.0" ghe-host-check
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 2 ))]}.0" ghe-host-check
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 3 ))]}.0" ghe-host-check
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]}))]}.0" ghe-host-check
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 1 ))]}.0" ghe-host-check
fi
else
#BACKUP_UTILS_VERSION WAS FOUND IN LATEST.JSON