From ecdb637fb6ac482ac1ccff013b265b32ec3c9a75 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Wed, 22 Jan 2020 14:02:15 +0100 Subject: #943: Fix bug when comparing the number of releases available for updating. --- installer/opengnsys_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 0ad98de6..99a51b96 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -205,7 +205,7 @@ function chooseVersion() RELEASES+=( "$BRANCH" ) DOWNLOADS+=( "$API_URL" ) # Show selection menu, if needed. - if [ ${#RELEASES} > 1 ]; then + if [ ${#RELEASES[@]} -gt 1 ]; then echo "Installed version: $INSTVERSION $INSTRELEASE" echo "Versions available for update (\"$BRANCH\" is the latest development branch):" PS3="Enter a number: " -- cgit v1.2.3-18-g5258