dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 12d52b52ccb18ed3f3fb4bfb6b46c2675deac675
parent 94e9ec1f8681d5204eee311d118b91236a9c23ad
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed, 11 Sep 2013 14:46:33 +0200

Merge branch 'master' of https://github.com/anders-dc/dotfiles

Diffstat:
Mbin/tor-browser-update.sh | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/tor-browser-update.sh b/bin/tor-browser-update.sh @@ -17,10 +17,12 @@ TORFOLDER=~/tor DIR="https://www.torproject.org/dist/torbrowser/linux/" # Check if torify is installed +GETCMD="wget --no-verbose" if command -v torify 2>/dev/null; then - DOWNLOADCMD="torify wget" + TORIFY="yes" + DOWNLOADCMD="torify $GETCMD" else - DOWNLOADCMD="wget" + DOWNLOADCMD=$GETCMD fi # Find latest TBB version @@ -44,9 +46,15 @@ echo "Attempting to download Tor Browser Bundle and signature" TARGET=$DIR$LATESTTBB.asc echo $TARGET $DOWNLOADCMD $TARGET &&\ +if [[ -z "$TORIFY" ]]; then + $GETCMD $TARGET -O $TARGET.notor +fi TARGET=$DIR$LATESTTBB echo $TARGET $DOWNLOADCMD $TARGET &&\ gpg --verify $LATESTTBB{.asc,} &&\ +if [[ -z "$TORIFY" ]]; then + gpg --verify $LATESTTBB{.asc.notor,} +fi tar xvfz $LATESTTBB &&\ echo "Installation complete. Start with $TORFOLDER/tor-browser_en-US/start-tor-browser"