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