fix: download timeout

#67
This commit is contained in:
KOWX712
2025-06-09 20:48:10 +08:00
parent 05efb7e4a1
commit 700419a56c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ manual_download() {
download() {
PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
if command -v curl >/dev/null 2>&1; then
timeout 10 curl -Ls "$1"
curl --connect-timeout 10 -Ls "$1"
else
timeout 10 busybox wget --no-check-certificate -qO- "$1"
busybox wget -T 10 --no-check-certificate -qO- "$1"
fi
PATH="$ORG_PATH"
}