-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tor browser installation (#842)
* Added Tor Browser to Web Browsers tab. * Ran cargo xtask docgen * removed unnecessary double quotes in tor-browser.sh Co-authored-by: JEEVITHA KANNAN K S <[email protected]> --------- Co-authored-by: JEEVITHA KANNAN K S <[email protected]> Co-authored-by: Chris Titus <[email protected]>
- Loading branch information
1 parent
51e2cbd
commit f5f3824
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
installTorBrowser() { | ||
if ! command_exists torbrowser-launcher; then | ||
printf "%b\n" "${YELLOW}Installing Tor Browser...${RC}" | ||
case "$PACKAGER" in | ||
apt-get|nala) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher | ||
;; | ||
zypper) | ||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install torbrowser-launcher | ||
;; | ||
pacman) | ||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm torbrowser-launcher | ||
;; | ||
dnf) | ||
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher | ||
;; | ||
*) | ||
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}" | ||
exit 1 | ||
;; | ||
esac | ||
else | ||
printf "%b\n" "${GREEN}Tor Browser is already installed.${RC}" | ||
fi | ||
} | ||
|
||
checkEnv | ||
checkEscalationTool | ||
installTorBrowser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters