mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-01-31 14:45:44 +00:00
28 lines
498 B
Bash
28 lines
498 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installCUPS() {
|
|
clear
|
|
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm cups
|
|
;;
|
|
apt-get|nala|dnf)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
|
|
;;
|
|
xbps-install)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -y cups
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installCUPS
|