Skip to content

Commit bec5f58

Browse files
committed
Fix ghe-host-check unsupported version test for unreleased feature versions
1 parent b213176 commit bec5f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test-ghe-host-check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ begin_test "ghe-host-check detects unsupported GitHub Enterprise Server versions
6868
if [ -z "$supported" ]
6969
then
7070
#BACKUP_UTILS_VERSION WAS NOT FOUND IN LATEST.JSON, CHECK IF ITS GREATER THAN LAST VERSION
71-
if [ "$(version $bu_major_minor)" -ge "$(version ${keys[$((${#keys[@]} - 2 ))]})" ]; then
71+
if [ "$(version $bu_major_minor)" -ge "$(version ${keys[$((${#keys[@]}))]})" ]; then
7272
GHE_TEST_REMOTE_VERSION="$bu_major_minor.0" ghe-host-check
73-
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 2 ))]}.0" ghe-host-check
74-
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 3 ))]}.0" ghe-host-check
73+
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]}))]}.0" ghe-host-check
74+
GHE_TEST_REMOTE_VERSION="${keys[$(( ${#keys[@]} - 1 ))]}.0" ghe-host-check
7575
fi
7676
else
7777
#BACKUP_UTILS_VERSION WAS FOUND IN LATEST.JSON

0 commit comments

Comments
 (0)