From c7f02f52e583d734c1dfacaf3422f8a3ceeb231b Mon Sep 17 00:00:00 2001 From: CooperGerman Date: Fri, 26 Apr 2024 15:32:09 +0200 Subject: [PATCH] Fix for https://github.com/Donkie/Spoolman/pull/335#discussion_r1578391362 --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index ecca887..2b95ca4 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -56,12 +56,12 @@ fi # if [[ -f /etc/os-release ]]; then source /etc/os-release - if [[ "$ID_LIKE" == *"debian"* ]]; then + if [[ "$ID_LIKE" == *"debian"* || "$ID" == *"debian"* ]]; then pkg_manager="apt-get" update_cmd="sudo $pkg_manager update" install_cmd="sudo $pkg_manager install -y" echo -e "${GREEN}Detected Debian-based system. Using apt-get package manager.${NC}" - elif [[ "$ID_LIKE" == *"arch"* ]]; then + elif [[ "$ID_LIKE" == *"arch"* || "$ID" == *"arch"* ]]; then pkg_manager="pacman" update_cmd="sudo $pkg_manager -Sy" install_cmd="sudo $pkg_manager -S --noconfirm"