mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-22 13:38:52 +00:00
fix: download apk
This commit is contained in:
@@ -215,10 +215,7 @@ _req() {
|
|||||||
local ip="$1" op="$2"
|
local ip="$1" op="$2"
|
||||||
shift 2
|
shift 2
|
||||||
if [ "$op" = - ]; then
|
if [ "$op" = - ]; then
|
||||||
local _req_out
|
if ! curl -L -c "$TEMP_DIR/cookie.txt" -b "$TEMP_DIR/cookie.txt" --connect-timeout 10 --retry 3 --retry-delay 2 --fail -s -S "$@" "$ip" 2>/dev/null; then
|
||||||
if _req_out=$(curl -L -c "$TEMP_DIR/cookie.txt" -b "$TEMP_DIR/cookie.txt" --connect-timeout 10 --retry 3 --retry-delay 2 --fail -s -S "$@" "$ip" 2>&1); then
|
|
||||||
echo "$_req_out"
|
|
||||||
else
|
|
||||||
epr "Request failed: $ip"
|
epr "Request failed: $ip"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user