From 8e86c3de7a4f310cea5a7623fe24384a05e51632 Mon Sep 17 00:00:00 2001 From: deffcolony <61471128+deffcolony@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:58:44 +0100 Subject: [PATCH] fix if to elif --- install.sh | 5 +---- launcher.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index adcbf21..dbce7e5 100644 --- a/install.sh +++ b/install.sh @@ -372,8 +372,7 @@ if [ -n "$IS_MACOS" ]; then install_git install_nodejs_npm installer -# Detect the package manager and execute the appropriate installation -if command -v apt-get &>/dev/null; then +elif command -v apt-get &>/dev/null; then log_message "INFO" "${blue_fg_strong}Detected Debian/Ubuntu-based system.${reset}" # Debian/Ubuntu install_git @@ -407,5 +406,3 @@ else log_message "ERROR" "${red_fg_strong}Unsupported package manager. Cannot detect Linux distribution.${reset}" exit 1 fi - - diff --git a/launcher.sh b/launcher.sh index 31e7354..e774062 100644 --- a/launcher.sh +++ b/launcher.sh @@ -635,7 +635,7 @@ if [ -n "$IS_MACOS" ]; then install_nodejs_npm home # Detect the package manager and execute the appropriate installation -if command -v apt-get &>/dev/null; then +elif command -v apt-get &>/dev/null; then log_message "INFO" "Detected Debian/Ubuntu-based system.${reset}" # Debian/Ubuntu install_git