From 2efa232c9d2ca063b42b6e3d034f106def88f4b2 Mon Sep 17 00:00:00 2001 From: JEEVITHA KANNAN K S Date: Mon, 30 Sep 2024 14:50:18 +0530 Subject: [PATCH] Fix packagers --- core/tabs/utils/encrypt_decrypt_tool.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/core/tabs/utils/encrypt_decrypt_tool.sh b/core/tabs/utils/encrypt_decrypt_tool.sh index 0db4a49b..1ee8c7e5 100644 --- a/core/tabs/utils/encrypt_decrypt_tool.sh +++ b/core/tabs/utils/encrypt_decrypt_tool.sh @@ -8,20 +8,10 @@ printf "%b\n" "${YELLOW}Ensuring OpenSSL is installed...${RC}" if ! command_exists openssl; then case "$PACKAGER" in pacman) - "$ESCALATION_TOOL" "$PACKAGER" -Syu --noconfirm openssl - ;; - apt-get|nala) - "$ESCALATION_TOOL" "$PACKAGER" install -y openssl - ;; - dnf) - "$ESCALATION_TOOL" "$PACKAGER" install -y openssl - ;; - zypper) - "$ESCALATION_TOOL" "$PACKAGER" install openssl + "$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm openssl ;; *) - printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" - exit 1 + "$ESCALATION_TOOL" "$PACKAGER" install -y openssl ;; esac fi