diff --git a/src/commands/system-update.sh b/src/commands/system-update.sh index 83c8a69e..6faaf62a 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} @@ -111,6 +111,9 @@ fastUpdate() { sudo ${PACKAGER} update -y sudo ${PACKAGER} upgrade -y ;; + xbps-install) + sudo ${PACKAGER} -Syu + ;; *) echo -e "${RED}Unsupported package manager: $PACKAGER${RC}" exit 1 @@ -136,6 +139,9 @@ updateSystem() { sudo ${PACKAGER} ref sudo ${PACKAGER} --non-interactive dup ;; + xbps-install) + sudo ${PACKAGER} -Syu + ;; *) echo -e "${RED}Unsupported package manager: ${PACKAGER}${RC}" exit 1 @@ -145,4 +151,4 @@ updateSystem() { checkEnv fastUpdate -updateSystem \ No newline at end of file +updateSystem