linutil/core/tabs/utils/printers/install-cups.sh

28 lines
498 B
Bash
Raw Normal View History

#!/bin/sh -e
. ../../common-script.sh
installCUPS() {
clear
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm cups
;;
2025-01-11 13:27:27 +00:00
apt-get|nala|dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
;;
2025-01-11 13:27:27 +00:00
xbps-install)
"$ESCALATION_TOOL" "$PACKAGER" -y cups
;;
*)
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
exit 1
;;
esac
}
checkEnv
checkEscalationTool
installCUPS