fix: download apk

This commit is contained in:
Nezumi-2711
2026-03-16 18:30:57 +07:00
parent bb1398a32f
commit e8297c8d9a
+1 -4
View File
@@ -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