From e8297c8d9a1e23e7a2c69ce29659203ee8c2f279 Mon Sep 17 00:00:00 2001 From: Nezumi-2711 Date: Mon, 16 Mar 2026 18:30:57 +0700 Subject: [PATCH] fix: download apk --- utils.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils.sh b/utils.sh index 4c4e205..778c48e 100755 --- a/utils.sh +++ b/utils.sh @@ -215,10 +215,7 @@ _req() { local ip="$1" op="$2" shift 2 if [ "$op" = - ]; then - local _req_out - 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 + 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 epr "Request failed: $ip" return 1 fi