You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
remove curl binary
use busybox wget binary instead of curl binary to fetch exclude-list
This commit is contained in:
@@ -5,19 +5,11 @@ initialize() {
|
||||
cp "$MODPATH/module.prop" "$COMPATH/module.prop.orig"
|
||||
mv "$COMPATH/UpdateTargetList.sh" "$SCRIPT_DIR/UpdateTargetList.sh"
|
||||
|
||||
sed -i "s|\"set-path\"|\"/data/adb/modules/$MODNAME/common/\"|" "$MODPATH/webroot/index.js" || {
|
||||
sed -i "s|\"set-path\"|\"/data/adb/modules/$MODID/common/\"|" "$MODPATH/webroot/index.js" || {
|
||||
ui_print "! Failed to replace path"
|
||||
abort
|
||||
}
|
||||
|
||||
# handle missing binary
|
||||
if [ ! -f "/system/bin/curl" ]; then
|
||||
mkdir -p "$MODPATH/system/bin"
|
||||
mv "$MODPATH/bin/$(getprop ro.product.cpu.abi)/curl" "$MODPATH/system/bin/curl"
|
||||
set_perm "$MODPATH/system/bin/curl" 0 2000 0777
|
||||
fi
|
||||
rm -rf "$MODPATH/bin"
|
||||
|
||||
set_perm $SCRIPT_DIR/UpdateTargetList.sh 0 2000 0755
|
||||
set_perm $COMPATH/get_exclude-list.sh 0 2000 0755
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user