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 ecb811597eb919e0098b0a64ff886cfd24e16da7
parent a58b4397a3a8293fd91907488c2528c20a3fa0ac
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Sun, 29 Sep 2013 20:11:56 +0200

Script detects platform (Linux or OSX)

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

diff --git a/bin/tor-browser-update.sh b/bin/tor-browser-update.sh @@ -14,7 +14,15 @@ TORFOLDER=~/tor # Remote folder containing the TBB archives -DIR="https://www.torproject.org/dist/torbrowser/linux/" +UNAMESTR=`uname` +if [[ "$UNAMESTR" == 'Linux' ]]; then + DIR="https://www.torproject.org/dist/torbrowser/linux/" +elif [[ "$UNAMESTR" == 'Darwin' ]]; then + DIR="https://www.torproject.org/dist/torbrowser/osx/" +else + echo "Platform not supported" + exit 1 +fi # Check if torify is installed GETCMD="wget --no-verbose"