Compare commits

...

11 Commits

Author SHA1 Message Date
leventbesli
bc1f34b658
Merge 0b390fd69e into 79eb752552 2024-10-08 23:40:02 +01:00
leventbesli
0b390fd69e
Update Cargo.lock
Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com>
2024-10-04 13:28:35 +03:00
leventbesli
5c7383d144
Update Cargo.lock
Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com>
2024-10-04 13:28:26 +03:00
leventbesli
f502f807bf update cargo.lock 2024-10-04 13:23:54 +03:00
leventbesli
a9eda86e44 update cargo.lock 2024-10-04 13:18:10 +03:00
leventbesli
3d05addebf revert cargo.lock 2024-10-04 13:16:03 +03:00
leventbesli
92a0d7c7ca xdg-utils removed from script 2024-10-04 13:08:51 +03:00
leventbesli
1b56f0d778 Revert "Delete Cargo.lock"
This reverts commit 0b0f173c9e.
2024-10-02 12:25:40 +03:00
leventbesli
0b0f173c9e
Delete Cargo.lock 2024-10-02 12:15:35 +03:00
leventbesli
29de3d6a6c zypper and pacman added to vivaldi.sh
- zypper and pacman added.
- format fixes.
2024-10-02 12:12:53 +03:00
leventbesli
82719d3f5e Fixed Vivaldi Setup
Lynx install script replaced with Vivaldi.
2024-10-01 16:01:08 +03:00

View File

@ -2,22 +2,39 @@
. ../../common-script.sh
installLynx() {
if ! command_exists lynx; then
printf "%b\n" "${YELLOW}Installing Lynx...${RC}"
installVivaldi() {
if ! command_exists vivaldi; then
printf "%b\n" "${YELLOW}Installing Vivaldi...${RC}"
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
"$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
"$ESCALATION_TOOL" "$PACKAGER" update
"$ESCALATION_TOOL" "$PACKAGER" install -y vivaldi-stable
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y dnf-plugins-core
"$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 lynx
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm vivaldi
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y lynx
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
exit 1
;;
esac
else
printf "%b\n" "${GREEN}Lynx TUI Browser is already installed.${RC}"
printf "%b\n" "${GREEN}Vivaldi Browser is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
installLynx
installVivaldi