File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed
core/tabs/applications-setup/browsers Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
. ../../common-script.sh
4
4
5
- installLynx () {
6
- if ! command_exists lynx ; then
7
- printf " %b\n" " ${YELLOW} Installing Lynx ...${RC} "
5
+ installVivaldi () {
6
+ if ! command_exists vivaldi ; then
7
+ printf " %b\n" " ${YELLOW} Installing Vivaldi ...${RC} "
8
8
case " $PACKAGER " in
9
+ apt-get|nala)
10
+ " $ESCALATION_TOOL " " $PACKAGER " install -y curl
11
+ " $ESCALATION_TOOL " curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo dd of=/usr/share/keyrings/vivaldi-browser.gpg
12
+ " $ESCALATION_TOOL " echo " deb [signed-by=/usr/share/keyrings/vivaldi-browser.gpg arch=$( dpkg --print-architecture) ] https://repo.vivaldi.com/archive/deb/ stable main" | sudo dd of=/etc/apt/sources.list.d/vivaldi-archive.list
13
+ " $ESCALATION_TOOL " " $PACKAGER " update
14
+ " $ESCALATION_TOOL " " $PACKAGER " install -y vivaldi-stable
15
+ ;;
16
+ dnf)
17
+ " $ESCALATION_TOOL " " $PACKAGER " install -y dnf-plugins-core
18
+ " $ESCALATION_TOOL " " $PACKAGER " config-manager --add-repo https://repo.vivaldi.com/stable/vivaldi-fedora.repo
19
+ " $ESCALATION_TOOL " " $PACKAGER " install -y vivaldi-stable
20
+ ;;
21
+ zypper)
22
+ " $ESCALATION_TOOL " zypper ar https://repo.vivaldi.com/archive/vivaldi-suse.repo
23
+ " $ESCALATION_TOOL " zypper --non-interactive --gpg-auto-import-keys in vivaldi-stable
24
+ ;;
9
25
pacman)
10
- " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm lynx
26
+ " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm vivaldi
11
27
;;
12
28
* )
13
- " $ESCALATION_TOOL " " $PACKAGER " install -y lynx
29
+ printf " %b\n" " ${RED} Unsupported package manager: " " $PACKAGER " " ${RC} "
30
+ exit 1
14
31
;;
15
32
esac
16
33
else
17
- printf " %b\n" " ${GREEN} Lynx TUI Browser is already installed.${RC} "
34
+ printf " %b\n" " ${GREEN} Vivaldi Browser is already installed.${RC} "
18
35
fi
19
36
}
20
37
21
38
checkEnv
22
39
checkEscalationTool
23
- installLynx
40
+ installVivaldi
You can’t perform that action at this time.
0 commit comments