Skip to content

Commit

Permalink
add lynx
Browse files Browse the repository at this point in the history
  • Loading branch information
guruswarupa committed Sep 19, 2024
1 parent bc620c8 commit 177f265
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion tabs/applications-setup/browser-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,27 @@ install_chromium() {
"$ESCALATION_TOOL" "$PACKAGER" install chromium
;;
*)
printf "%b\n" "The script does not support your Distro. Install manually.."
printf "%b\n" "${RED}The script does not support your Distro. Install manually..${RC}"
;;
}

install_lynx() {
printf "%b\n" "${YELLOW}Installing Lynx...${RC}"
case "$PACKAGER" in
apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" install -y lynx
;;
zypper)
"$ESCALATION_TOOL" "$PACKAGER" install lynx
;;
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm lynx
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install lynx
;;
*)
printf "%b\n" "${RED}The script does not support your Distro. Install manually..${RC}"
;;
}

Expand All @@ -120,6 +140,7 @@ browserSetup() {
printf "%b\n" "3. Brave"
printf "%b\n" "4. Vivaldi"
printf "%b\n" "5. Chromium"
printf "%b\n" "5. Lynx"
printf "%b\n" "----------------------------"
printf "%b\n" "Enter your choices (e.g., 1 3 5): "
read -r choice
Expand All @@ -130,6 +151,7 @@ browserSetup() {
3) install_brave ;;
4) install_vivaldi ;;
5) install_chromium ;;
6) install_lynx;;
*) printf "%b\n" "${RED}Invalid option: $ch ${RC}" ;;
esac
done
Expand Down

0 comments on commit 177f265

Please sign in to comment.