From 69c5d0a41275c1962e7ac232cf92cdf32d49d997 Mon Sep 17 00:00:00 2001 From: Vorthas <24818280+Vorthas@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:32:04 -0400 Subject: [PATCH] Update core/tabs/utils/printers/install-epson-printer-drivers.sh Co-authored-by: JEEVITHA KANNAN K S --- .../printers/install-epson-printer-drivers.sh | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/core/tabs/utils/printers/install-epson-printer-drivers.sh b/core/tabs/utils/printers/install-epson-printer-drivers.sh index 9d190218..be70c037 100644 --- a/core/tabs/utils/printers/install-epson-printer-drivers.sh +++ b/core/tabs/utils/printers/install-epson-printer-drivers.sh @@ -7,16 +7,19 @@ installEpsonPrinterDriver() { clear case "$PACKAGER" in - pacman) - "${AUR_HELPER}" -S --noconfirm epson-inkjet-printer-escpr - ;; - apt-get | nala) - "$ESCALATION_TOOL" "${PACKAGER}" install -y printer-driver-escpr - ;; - dnf) - "$ESCALATION_TOOL" "${PACKAGER}" install -y epson-inkjet-printer-escpr - ;; - *) ;; + pacman) + "$AUR_HELPER" -S --noconfirm epson-inkjet-printer-escpr + ;; + apt-get|nala) + "$ESCALATION_TOOL" "$PACKAGER" install -y printer-driver-escpr + ;; + dnf) + "$ESCALATION_TOOL" "$PACKAGER" install -y epson-inkjet-printer-escpr + ;; + *) + printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}" + exit 1 + ;; esac }