mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 10:02:17 -05:00
This commit is contained in:
1 parent
fd33446a59
commit
c7f02f52e5
1 file changed
+2
-2
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user