auto-torify in torbrowser.sh script
Former-commit-id: 63044f3e1b
Former-commit-id: 41dec631f3b4d50c089cfc4fd6136f77c8fca9f8
This commit is contained in:
@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
TORSOCKS=$(which torsocks)
|
||||
if [ -f "${TORSOCKS}" ]; then
|
||||
. "${TORSOCKS}" on
|
||||
fi
|
||||
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
locale="en-US" # mention your locale. default = en-US
|
||||
if [ -d /etc/default/locale ]; then
|
||||
@ -19,4 +25,3 @@ fi
|
||||
gpgv --keyring ./tor.keyring "tor-browser-linux64-"$version"_"$locale".tar.xz.asc" "tor-browser-linux64-"$version"_"$locale".tar.xz"
|
||||
|
||||
tar xvJf "tor-browser-linux64-"$version"_"$locale".tar.xz"
|
||||
|
||||
|
Reference in New Issue
Block a user