This commit is contained in:
JEEVITHA KANNAN K S 2024-10-27 23:06:18 +01:00 committed by GitHub
commit 0b79c5f0dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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