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
support for invisible module update function
This commit is contained in:
@@ -17,7 +17,7 @@ awk -F'"' '{print $4}' > "$OUTPUT"
|
||||
|
||||
if [ ! -s "$OUTPUT" ]; then
|
||||
rm -f "$KBOUTPUT"
|
||||
skipkb=true
|
||||
skipfetch=true
|
||||
fi
|
||||
|
||||
# Find xposed package name
|
||||
@@ -29,12 +29,21 @@ pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | while read -
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$skipkb" != "true" ]; then
|
||||
if [ "$skipfetch" != "true" ]; then
|
||||
wget --no-check-certificate -qO "$KBOUTPUT" "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/.extra"
|
||||
|
||||
if [ ! -s "$KBOUTPUT" ]; then
|
||||
rm -f "$KBOUTPUT"
|
||||
fi
|
||||
|
||||
if [ -d "$MODPATH/temp" ]; then
|
||||
JSON=$(wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/update.json")
|
||||
REMOTE_VERSION=$(echo "$JSON" | grep -o '"versionCode": *[0-9]*' | awk -F: '{print $2}' | tr -d ' ')
|
||||
LOCAL_VERSION=$(grep -o 'versionCode=[0-9]*' "$MODPATH/temp/module.prop" | awk -F= '{print $2}')
|
||||
if [ "$REMOTE_VERSION" -gt "$LOCAL_VERSION" ]; then
|
||||
echo "update"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user