From a07ea5729f3c75f2254d14f3f4aa0177911821ae Mon Sep 17 00:00:00 2001 From: Justin Travis Date: Fri, 27 Oct 2023 08:38:48 -0400 Subject: [PATCH] KASM-5187 Fix Torbrowser download parsing --- src/ubuntu/install/torbrowser/install_torbrowser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ubuntu/install/torbrowser/install_torbrowser.sh b/src/ubuntu/install/torbrowser/install_torbrowser.sh index 295c1b1..e095bdb 100644 --- a/src/ubuntu/install/torbrowser/install_torbrowser.sh +++ b/src/ubuntu/install/torbrowser/install_torbrowser.sh @@ -9,7 +9,7 @@ if [ "$(arch)" == "aarch64" ]; then SF_VERSION=$(curl -sI https://sourceforge.net/projects/tor-browser-ports/files/latest/download | awk -F'(ports/|/tor)' '/location/ {print $3}') FULL_TOR_URL="https://downloads.sourceforge.net/project/tor-browser-ports/${SF_VERSION}/tor-browser-linux-arm64-${SF_VERSION}_ALL.tar.xz" else - TOR_URL=$(curl -q https://www.torproject.org/download/ | grep downloadLink | grep linux64 | sed 's/.*href="//g' | cut -d '"' -f1 | head -1) + TOR_URL=$(curl -q https://www.torproject.org/download/ | grep downloadLink | grep linux | sed 's/.*href="//g' | cut -d '"' -f1 | head -1) FULL_TOR_URL="https://www.torproject.org/${TOR_URL}" fi wget --quiet "${FULL_TOR_URL}" -O /tmp/torbrowser.tar.xz