Merge pull request #9 from deffcolony/main

fix if to elif
This commit is contained in:
Cohee
2023-11-06 18:01:18 +02:00
committed by GitHub
2 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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