File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -460,17 +460,25 @@ downloadLatestReleaseInfo() {
460460#
461461downloadAndInstall (){
462462 # Check Ubuntu version for compatibility
463- if [ -f /etc/os-release ]; then
464- . /etc/os-release
465- if [[ " $ID " = " ubuntu" && " $VERSION_ID " = " 24.04" ]]; then
466- echo -e " ${RED} Ubuntu 24.04 LTS is not currently supported by this installation script.${RESET} "
467- echo -e " ${YELLOW} Please use an earlier version of Ubuntu for the time being. Check back later for updates.${RESET} "
468- exit 1
469- fi
470- fi
463+
471464
472465 echo " Using temporary directory $TMP_DIR for processing"
473466 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
481+ fi
474482 CURRENT_GLIBC_VERSION=$( ldd --version | grep " ldd" | awk ' {print $NF}' )
475483 echo " Current GLIBC version: $CURRENT_GLIBC_VERSION "
476484
You can’t perform that action at this time.
0 commit comments