From 5f6984d27edb2900a5739919aa161506d21fffb6 Mon Sep 17 00:00:00 2001 From: Nightmist <85037176+NightmistTheCat@users.noreply.github.com> Date: Tue, 16 Jul 2024 13:49:44 +0200 Subject: [PATCH] Add Void Linux XBPS support --- src/commands/system-update.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commands/system-update.sh b/src/commands/system-update.sh index 36b7630d..6cbbf41e 100755 --- a/src/commands/system-update.sh +++ b/src/commands/system-update.sh @@ -19,7 +19,7 @@ checkEnv() { fi done ## Check Package Handler - PACKAGEMANAGER='apt-get nala dnf pacman zypper yum' + PACKAGEMANAGER='apt-get nala dnf pacman zypper yum xbps-install' for pgm in ${PACKAGEMANAGER}; do if command_exists ${pgm}; then PACKAGER=${pgm} @@ -109,6 +109,9 @@ fastUpdate() { sudo ${PACKAGER} update -y sudo ${PACKAGER} upgrade -y ;; + xbps-install) + sudo ${PACKAGER} -Syu + ;; *) printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n" exit 1 @@ -134,6 +137,9 @@ updateSystem() { sudo ${PACKAGER} refresh sudo ${PACKAGER} update -y ;; + xbps-install) + sudo ${PACKAGER} -Syu + ;; *) printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n" exit 1 @@ -143,4 +149,4 @@ updateSystem() { checkEnv fastUpdate -updateSystem \ No newline at end of file +updateSystem