autopif.sh: don't use half-baked wget-curl wrapper some ROMs include

This commit is contained in:
Chris Renshaw
2024-05-19 04:01:56 -03:00
committed by GitHub
parent c7b87b944f
commit 2dd7a17ac2

View File

@@ -14,7 +14,7 @@ case "$0" in
esac;
DIR=$(dirname "$(readlink -f "$DIR")");
if ! which wget >/dev/null; then
if ! which wget >/dev/null || grep -q "wget-curl" $(which wget); then
if [ -f /data/adb/magisk/busybox ]; then
wget() { /data/adb/magisk/busybox wget "$@"; }
elif [ -f /data/adb/ksu/bin/busybox ]; then