Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 1ed5cf9

Browse files
committed
fix download path
1 parent b5bd251 commit 1ed5cf9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/v2script.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,8 @@ get_proxy() {
196196
else
197197
local API_URL="https://api.github.com/repos/liberal-boy/tls-shunt-proxy/releases/latest"
198198
local DOWNLOAD_URL="$(curl "${PROXY}" -H "Accept: application/json" -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0" -s "${API_URL}" --connect-timeout 10| grep 'browser_download_url' | cut -d\" -f4)"
199-
local DOWNLOAD_PATH="/tmp/tls-shunt-proxy/tls-shunt-proxy.zip"
200-
${sudoCmd} curl -L -H "Cache-Control: no-cache" -o "${DOWNLOAD_PATH}" "${DOWNLOAD_URL}"
201-
${sudoCmd} unzip -o -d /usr/local/bin/ "${DOWNLOAD_PATH}"
199+
${sudoCmd} curl -L -H "Cache-Control: no-cache" -o "/tmp/tls-shunt-proxy.zip" "${DOWNLOAD_URL}"
200+
${sudoCmd} unzip -o -d /usr/local/bin/ "/tmp/tls-shunt-proxy.zip"
202201
${sudoCmd} chmod +x /usr/local/bin/tls-shunt-proxy
203202
fi
204203
}

0 commit comments

Comments
 (0)