@@ -459,26 +459,25 @@ downloadLatestReleaseInfo() {
459459# version and decide whether an upgrade is necessary.
460460#
461461downloadAndInstall (){
462- # Check Ubuntu version for compatibility
463-
464462
465463 echo " Using temporary directory $TMP_DIR for processing"
466464 downloadLatestReleaseInfo > /dev/null
467- if [ -f /etc/os-release ] ; then
468- . /etc/os-release
469- if [[ " $ID " = " ubuntu " && " $VERSION_ID " = " 24.04 " ]] ; then
470- local latestFileUrl
471- latestFileUrl= $( grep -oP ' https://[^"]*latest\.json ' " $TMP_DIR /latest_release.json " )
472- WGET_OPTS =$( configure_wget_options )
473-
474- wget $WGET_OPTS " $TMP_DIR /latest.json " " $latestFileUrl " || {
475- echo -e " ${RED} Failed to download the latestFile. Please check your internet connection and try again. ${RESET} "
476- }
477- echo -e " ${RED} Ubuntu 24.04 LTS is not currently supported by this installation script. ${RESET} "
478- echo -e " ${YELLOW} Please use an earlier version of Ubuntu for the time being. Check back later for updates .${RESET} "
479- exit 1
480- fi
465+ # Check Ubuntu version for compatibility
466+ if [ -f /etc/os-release ] ; then
467+ . /etc/os-release
468+ if [[ " $ID " = " ubuntu " && " $VERSION_ID " = " 24.04 " ]] ; then
469+ local latestFileUrl
470+ latestFileUrl =$( grep -oP ' https://[^"]*latest\.json ' " $TMP_DIR /latest_release.json " )
471+ WGET_OPTS= $( configure_wget_options )
472+
473+ wget $WGET_OPTS " $TMP_DIR /latest.json " " $latestFileUrl " || {
474+ echo -e " ${RED} Failed to download the latestFile. Please check your internet connection and try again. ${RESET} "
475+ }
476+ echo -e " ${RED} Ubuntu 24.04 LTS is not currently supported by this installation script .${RESET} "
477+ echo -e " ${YELLOW} Please use an earlier version of Ubuntu for the time being. Check back later for updates. ${RESET} "
478+ exit 1
481479 fi
480+ fi
482481 CURRENT_GLIBC_VERSION=$( ldd --version | grep " ldd" | awk ' {print $NF}' )
483482 echo " Current GLIBC version: $CURRENT_GLIBC_VERSION "
484483
0 commit comments