From ca1befd6e1610e555817544e8ba4a250a8c036ea Mon Sep 17 00:00:00 2001 From: Charly Abraham Date: Thu, 9 May 2024 21:48:43 +0530 Subject: [PATCH] chore: code indendation --- docs/linux/installer.sh | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/docs/linux/installer.sh b/docs/linux/installer.sh index 28e6dc10..dcbba1cd 100755 --- a/docs/linux/installer.sh +++ b/docs/linux/installer.sh @@ -459,26 +459,25 @@ downloadLatestReleaseInfo() { # version and decide whether an upgrade is necessary. # downloadAndInstall(){ - # Check Ubuntu version for compatibility - echo "Using temporary directory $TMP_DIR for processing" downloadLatestReleaseInfo > /dev/null - if [ -f /etc/os-release ]; then - . /etc/os-release - if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]]; then - local latestFileUrl - latestFileUrl=$(grep -oP 'https://[^"]*latest\.json' "$TMP_DIR/latest_release.json") - WGET_OPTS=$(configure_wget_options) - - wget $WGET_OPTS "$TMP_DIR/latest.json" "$latestFileUrl" || { - echo -e "${RED}Failed to download the latestFile. Please check your internet connection and try again.${RESET}" - } - echo -e "${RED}Ubuntu 24.04 LTS is not currently supported by this installation script.${RESET}" - echo -e "${YELLOW}Please use an earlier version of Ubuntu for the time being. Check back later for updates.${RESET}" - exit 1 - fi + # Check Ubuntu version for compatibility + if [ -f /etc/os-release ]; then + . /etc/os-release + if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]]; then + local latestFileUrl + latestFileUrl=$(grep -oP 'https://[^"]*latest\.json' "$TMP_DIR/latest_release.json") + WGET_OPTS=$(configure_wget_options) + + wget $WGET_OPTS "$TMP_DIR/latest.json" "$latestFileUrl" || { + echo -e "${RED}Failed to download the latestFile. Please check your internet connection and try again.${RESET}" + } + echo -e "${RED}Ubuntu 24.04 LTS is not currently supported by this installation script.${RESET}" + echo -e "${YELLOW}Please use an earlier version of Ubuntu for the time being. Check back later for updates.${RESET}" + exit 1 fi + fi CURRENT_GLIBC_VERSION=$(ldd --version | grep "ldd" | awk '{print $NF}') echo "Current GLIBC version: $CURRENT_GLIBC_VERSION"