ctf-tools/tor-browser/install
Steven Van Acker 7144e756e5 fail hard on any error + verify that all scripts use bash -ex to fail
early on any error + anticipate that some tools can't be installed by
now, but we still want the test to return success to satisfy travis-ci
2017-02-16 22:40:17 +01:00

9 lines
344 B
Bash
Executable file

#!/bin/bash -ex
REL_PATH=$(curl https://www.torproject.org/projects/torbrowser.html.en#downloads | grep -i tor-browser-linux | grep hardened | grep td | sed -e 's/.*href="//' -e 's/">.*//')
wget https://www.torproject.org/projects/$REL_PATH -O - | tar xvJ
mkdir -p bin
cd bin
ln -s ../tor-browser/start-tor-browser.desktop tor-browser
cd ..