From b74701dbc51cb2cb23c5e6ce87f47cfb238143f2 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Mon, 4 Aug 2025 08:52:55 +0200 Subject: [PATCH] Update system_utils.sh --- scripts/utilities/system_utils.sh | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/scripts/utilities/system_utils.sh b/scripts/utilities/system_utils.sh index 424241f..d4fe021 100644 --- a/scripts/utilities/system_utils.sh +++ b/scripts/utilities/system_utils.sh @@ -81,33 +81,9 @@ install_system_utils() { msg_info "$(translate "Installing") $package ($description)..." local install_success=false - if command_exists apt; then - # No need for apt update here because it's done in ensure_repositories - if apt install -y "$package" >/dev/null 2>&1; then - install_success=true - fi - elif command_exists yum; then - if yum install -y "$package" >/dev/null 2>&1; then - install_success=true - fi - elif command_exists dnf; then - if dnf install -y "$package" >/dev/null 2>&1; then - install_success=true - fi - elif command_exists pacman; then - if pacman -S --noconfirm "$package" >/dev/null 2>&1; then - install_success=true - fi - elif command_exists zypper; then - if zypper install -y "$package" >/dev/null 2>&1; then - install_success=true - fi - else - cleanup - msg_error "$(translate "No compatible package manager detected")" - return 1 + if apt install -y "$package" >/dev/null 2>&1; then + install_success=true fi - cleanup if [ "$install_success" = true ]; then @@ -221,6 +197,7 @@ install_system_utils() { 1) failed=$((failed + 1)) ;; 2) warning=$((warning + 1)) ;; esac + sleep 2 done echo @@ -280,6 +257,7 @@ install_system_utils() { 1) failed=$((failed + 1)) ;; 2) warning=$((warning + 1)) ;; esac + sleep 2 done if [ -f ~/.bashrc ]; then