mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
Add Void Linux XBPS support
This commit is contained in:
parent
445e5b68e2
commit
5f6984d27e
|
@ -19,7 +19,7 @@ checkEnv() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
## Check Package Handler
|
## 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
|
for pgm in ${PACKAGEMANAGER}; do
|
||||||
if command_exists ${pgm}; then
|
if command_exists ${pgm}; then
|
||||||
PACKAGER=${pgm}
|
PACKAGER=${pgm}
|
||||||
|
@ -109,6 +109,9 @@ fastUpdate() {
|
||||||
sudo ${PACKAGER} update -y
|
sudo ${PACKAGER} update -y
|
||||||
sudo ${PACKAGER} upgrade -y
|
sudo ${PACKAGER} upgrade -y
|
||||||
;;
|
;;
|
||||||
|
xbps-install)
|
||||||
|
sudo ${PACKAGER} -Syu
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n"
|
printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -134,6 +137,9 @@ updateSystem() {
|
||||||
sudo ${PACKAGER} refresh
|
sudo ${PACKAGER} refresh
|
||||||
sudo ${PACKAGER} update -y
|
sudo ${PACKAGER} update -y
|
||||||
;;
|
;;
|
||||||
|
xbps-install)
|
||||||
|
sudo ${PACKAGER} -Syu
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n"
|
printf "${RED}Unsupported package manager: ${PACKAGER}${RC}\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -143,4 +149,4 @@ updateSystem() {
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
fastUpdate
|
fastUpdate
|
||||||
updateSystem
|
updateSystem
|
||||||
|
|
Loading…
Reference in New Issue
Block a user