mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
zypper and pacman added to vivaldi.sh
- zypper and pacman added. - format fixes.
This commit is contained in:
parent
82719d3f5e
commit
29de3d6a6c
|
@ -5,7 +5,7 @@
|
||||||
installVivaldi() {
|
installVivaldi() {
|
||||||
if ! command_exists vivaldi; then
|
if ! command_exists vivaldi; then
|
||||||
printf "%b\n" "${YELLOW}Installing Vivaldi...${RC}"
|
printf "%b\n" "${YELLOW}Installing Vivaldi...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
apt-get|nala)
|
apt-get|nala)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl
|
"$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
|
"$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" config-manager --add-repo https://repo.vivaldi.com/stable/vivaldi-fedora.repo
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y vivaldi-stable
|
"$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}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user