mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 11:02:40 +02:00
module/autopif: tweak download function
This commit is contained in:
parent
3c5d5142f8
commit
1269775793
@ -2,13 +2,13 @@
|
|||||||
PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
|
PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
|
||||||
MODDIR=/data/adb/modules/playintegrityfix
|
MODDIR=/data/adb/modules/playintegrityfix
|
||||||
|
|
||||||
download() {
|
|
||||||
if command -v curl > /dev/null 2>&1; then
|
download() { busybox wget -T 10 --no-check-certificate -qO - "$1"; }
|
||||||
curl --connect-timeout 10 -s "$1"
|
|
||||||
else
|
if command -v curl > /dev/null 2>&1; then
|
||||||
busybox wget -T 10 --no-check-certificate -qO - "$1"
|
download() { curl --connect-timeout 10 -s "$1"; }
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
set_random_beta() {
|
set_random_beta() {
|
||||||
if [ "$(echo "$MODEL_LIST" | wc -l)" -ne "$(echo "$PRODUCT_LIST" | wc -l)" ]; then
|
if [ "$(echo "$MODEL_LIST" | wc -l)" -ne "$(echo "$PRODUCT_LIST" | wc -l)" ]; then
|
||||||
@ -24,7 +24,7 @@ set_random_beta() {
|
|||||||
download_fail() {
|
download_fail() {
|
||||||
echo "- download failed!"
|
echo "- download failed!"
|
||||||
echo "- bailing out!"
|
echo "- bailing out!"
|
||||||
exit 0
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# lets try to use tmpfs for processing
|
# lets try to use tmpfs for processing
|
||||||
|
Loading…
Reference in New Issue
Block a user