From 29de3d6a6c58fdb365b152593cd0140a63a807e9 Mon Sep 17 00:00:00 2001 From: leventbesli Date: Wed, 2 Oct 2024 12:12:53 +0300 Subject: [PATCH] zypper and pacman added to vivaldi.sh - zypper and pacman added. - format fixes. --- core/tabs/applications-setup/browsers/vivaldi.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/browsers/vivaldi.sh b/core/tabs/applications-setup/browsers/vivaldi.sh index b55aa0af..11db4361 100644 --- a/core/tabs/applications-setup/browsers/vivaldi.sh +++ b/core/tabs/applications-setup/browsers/vivaldi.sh @@ -5,7 +5,7 @@ installVivaldi() { if ! command_exists vivaldi; then printf "%b\n" "${YELLOW}Installing Vivaldi...${RC}" -case "$PACKAGER" in + case "$PACKAGER" in apt-get|nala) "$ESCALATION_TOOL" "$PACKAGER" install -y curl "$ESCALATION_TOOL" curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo dd of=/usr/share/keyrings/vivaldi-browser.gpg @@ -18,6 +18,13 @@ case "$PACKAGER" in "$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://repo.vivaldi.com/stable/vivaldi-fedora.repo "$ESCALATION_TOOL" "$PACKAGER" install -y vivaldi-stable ;; + zypper) + "$ESCALATION_TOOL" zypper ar https://repo.vivaldi.com/archive/vivaldi-suse.repo + "$ESCALATION_TOOL" zypper --non-interactive --gpg-auto-import-keys in vivaldi-stable + ;; + pacman) + "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm xdg-utils vivaldi + ;; *) printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" exit 1