From 1c5b284a3b3127565e1c6c33f47ebc830fd517ec Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 4 Apr 2019 15:50:24 -0400 Subject: [PATCH] Attempt to support more distros --- integration/install-tor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration/install-tor.sh b/integration/install-tor.sh index 2644da91b..1f9662a8d 100755 --- a/integration/install-tor.sh +++ b/integration/install-tor.sh @@ -3,11 +3,11 @@ # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ set -euxo pipefail -# Script to install Tor +CODENAME=$(lsb_release --short --codename) -set -ex -echo "deb http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list -echo "deb-src http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list +# Script to install Tor +echo "deb http://deb.torproject.org/torproject.org ${CODENAME} main" | sudo tee -a /etc/apt/sources.list +echo "deb-src http://deb.torproject.org/torproject.org ${CODENAME} main" | sudo tee -a /etc/apt/sources.list # Install Tor repo signing key sudo apt-key add - <