mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-22 16:13:21 +01:00
KASM-5187 Fix Torbrowser download parsing
This commit is contained in:
parent
7c31f93689
commit
94aa568011
@ -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}')
|
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"
|
FULL_TOR_URL="https://downloads.sourceforge.net/project/tor-browser-ports/${SF_VERSION}/tor-browser-linux-arm64-${SF_VERSION}_ALL.tar.xz"
|
||||||
else
|
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}"
|
FULL_TOR_URL="https://www.torproject.org/${TOR_URL}"
|
||||||
fi
|
fi
|
||||||
wget --quiet "${FULL_TOR_URL}" -O /tmp/torbrowser.tar.xz
|
wget --quiet "${FULL_TOR_URL}" -O /tmp/torbrowser.tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user